Getting over an ex

I ended things with my ex months ago but we stayed in contact. He's found someone new and the rational side of me says to be happy for him but the other part of me wants it to end and I'm not the type of person to break or attempt to break someone up. Lately mostly due to dreams I want him back and I feel like I relive feelings of love which makes it worse. I explained my recurring feelings and are not talking. How do I get over him and work on myself?

I've tried hanging out with my girls and I am dating but those are temporary until I get bored or really down and I miss him again.

Thank you