<human>: Can you summarize the given text in a few sentences?

Throwaway because my SO is on reddit. Also I figured I'm probably going to get roasted for this.

I have been dating my current boyfriend(25M) for over a year and things are fine. He's incredibly kind and thoughtful. He has his flaws like he has anxiety that manifests in different ways. He acknowledges this but has never taken steps to see a professional or anything. He works and I go to school full time and have a part time job. 

Here's the thing. When I study or work my mind goes to these weird places and I can't seem to control it. I start thinking about this guy (M28) I used to have a relationship with. We never were an official thing because he lived kind of far and was about to move further for work. I don't talk to him or anything now but we used to be so close. And now when I'm trying to avoid studying, I can't help but think about him and all the fun we had together. Its never anything sexual. I mean we were attracted to one another but we were also really good friends.

Theres no risk of me physically cheating or having an accidental drunk moment with him because it would require me to hop a plane or drive across the country. We don't message on Facebook or anything because neither of us are really social media people. Maybe once every couple months we will exchange a brief text exchange "How's work?" "Good luck on your test" "How's your dog"

Does anyone have any advice on what to do?
<bot>: I feel like I'm doing my current SO a disservice by thinking of someone else but I'm kind of at a loss for how to stop it.