<human>: I'm almost 2 years into my relationship and can't stop thinking about two girls I knew 5 years ago.

I was good friends with both of them for a year before things got really ugly and the bridges were burned down. I had sex with one and the other tried to have sex with me but I told her no because she was already in a relationship, so there was some puppy love to it, but there were deeper bonds beneath the surface.

I deeply regret how things ended and wish I could still talk to them and know how they are doing.

My current relationship lost its luster but I'm stuck in it at the moment for reasons. Even so, before things went downhill and I was satisfied with my relationship, they'd come up in my thoughts. 

I have a decent sized circle of friends and have plenty of ways to keep my mind occupied, but they still manage to work their way into my thoughts occasionally, and it always brings me down for a few hours. Is there anything I can do to get over them permanently?

Provide a brief overview of the text.
<bot>: 2 years into my declining relationship, still think about and miss girls I was close with 5 years ago, how do I stop this?