Question: how to stop thinking about someone you dislike?
Answer: The more we think about what we don't like or want, the more we get of that. Remind yourself how thankful you are for the lessons they taught you. Focus your thoughts on things you like, not dislike about the person. Every time the thought of that person arises wish them happiness and soon your mind will set them free.