How do you get over someone?

We were never actually in a relationship, but how can I forget about him? Long story what ended up happening lol but he’s scum.

What stuff do you think about to make yourself move on? I try and pick apart everything about him because I know I deserve so much better.