What to do😩

I know my ex is bad for me. All he did was use me for sex & money. But for some reason I can’t stop thinking about him!!! I miss him so much. I havent talked to him in about 2 weeks and that’s the longest we’ve ever not spoken. I just want him back in my life😩 but he’s no good. How do I get over this feeling?