Dreaming about my ex

Ok I know hate is a strong word but I absolutely hate my ex but for some reason I’ve been having dreams of him lately sometimes sexual dreams to it’s really weird because I am married now and been with my husband for 4 years I am currently 7 weeks pregnant with our 2nd child. Why am i dreaming about my shitty ass ex