How to move on from someone?!

So, I reconnected with this guy I went to middle school with in December of 2014 and I ended up losing my virginity to him (earlier than I wanted to) but the temptation was there. Sometimes I regret giving it up so early, but then again I don't. I was 17 at the time and he was my first everything. We rushed into a relationship and things kind of ended badly. While we were dating I was suffering from depression. On top of that, I had trust issues and was really insecure. I constantly pushed him away because I was afriad that he would eventually hurt me. We dated for about 4.5 months, but we continued messing around until I left for college. Prior to leaving, I found out that he got back with his ex-girlfriend. When I came back from school, we hooked up again (him and his ex broke up again) and for a while I was just cool with the sex until I realized that I still loved him. I know this all sounds messy, but please don't judge me. To make this long story short, him and I had somewhat of a strong bond. When I talk to other people, like my mother for example, she thinks that I can't leave him alone, blah blah blah. 🙄 I definitely can say that I love him and that he will always have a special place in my heart, but we are not meant to be together, at least not now. He's still in love with his ex-girlfriend, despite the fact that they're no longer dating. At this point in my life, I just want to move on. I know that I deserve better, but I don't want to get with anyone else until I know that I'm no longer attached to him emotionally. Btw I'm really anti-social, so I have NO friends. I think that might be why I'm still holding on to my ex because he was the closet thing I had to a friend and he understood me. Has anyone ever been in a similar situation? I'd really appreciate the advice and please be kind. Thanks. :)