How do I not let the past bother me

I’ve been struggling a lot lately with trying to move on from people in past who have hurt me and abused me. I always get anxious about seeing them in public and I’m always worrying about what they’re thinking of me. I’m married and starting a family soon I know I should be putting all my energy into that but why do I keep getting set back into this anxious mindset of worrying about others who isn’t my family. Any advice would be helpful.