How do I get over this?

So a while ago I did some stuff with a boy in the psychiatry and honestly I only did It because I didn't have enough self esteem and because I wanted to have some fun. But now I regret it because I realized how much I hate him. He's not in the psychiatry anymore, but I'm still so angry, and he's an idiot.
How do I get over this?
Post Opinion