dreams about ex

this has been going on for a couple months now. Me and my ex broke up about a year ago, after we broke up he got a girlfriend and i’m still healing a little but i’ve mostly got over him at least that’s what i’m thinking. A lot of times most of the dreams are about me and him getting back together. i’m pretty sure his new gf and him have been together almost or at least half of a year now. Deep inside of me i still really miss him but he was mentally horrible for me. he made me cry and just made me feel bad about myself or well just the things i did not my looks or anything. i keep on remembering the good times and i haven’t been able to move on from him at least for a little bit now i know exes won’t completely go away from your mind but hes constantly showing up in my dreams and its getting annoying. does anyone have advice/experience/solution ?