How to get over someone

Hey how can I get over some I have to see a lot,

Me and my ex split just over a month ago but we have slept with each other since.

How can I get over him when we have the same group of friends attend the same party’s etc

I mean I do want to be with him but obvs he doesn’t so how can I get over this ?? If I didn’t have to see him it would be fine but I do so what can I do ?