How can I stop thinking about someone everyday who hurt me 3 years ago?

I check their social medias multiple times a day and think about them multiple times a day. I don’t want to go into what happened
How can I stop thinking about someone everyday who hurt me 3 years ago?
Post Opinion