Getting over toxic person

So how do y’all get over a guy who doesn’t like you or see your worth and only wants you for sex it’s been a year and I can’t get him out of my head I can’t block him bc I miss him.. I still go out with friends but at the end of the day I just miss him.