Anecdotally some b6/b12 supplements have given both me and my partner very intense dreams and vivid recall. No idea what the mechanism might be (Or if it's a preservative/etc) but potentially an interesting data point?
Also whatever malaria drug I took was supposed to have intense dreams as a side effect. (Don’t remember any)