How can I convince myself to move on from a guy whom I know is no good for me?

So he was a senior in my university, we never really had any connection or mutual friends but recently we connected on instagram and what started as a normal chat has become more serious and personal. Soon we both started to share a lot about us to each other including secrets. And I realised that I feel so attached to him that if he is not replying to me it totally messes up my mood and I feel depressed and anxious like i keep checking my phone and i am unable to focus on anything else. Plus he is looking for something casual, casual sex in other words. He has been into hookups etc and this is definitely not what I am looking for. So now I have no idea what to do like I have so much anxiety when he won't reply to me. I'm so embarrassed to even accept it that even he's the one in my mind all the time. I just have no idea how I can get over it. I tried to stop talking to him but it just didn't work. How can I get myself to just move on like I 100% know this is not gonna end well for me. I feel so helpless. Please be kind

How can I convince myself to move on from a guy whom I know is no good for me?
Post Opinion