Advice needed

Wanted some advice so figured I’d ask on here if anyone else has had any similar experiences....

Me and my boyfriend were together for a little over a year and we lived together. Then broke up and I moved back home. We were broken up for around 6 weeks and he reached out and we decided the feelings were still there.

While we were broken up I was talking to a friend and we ended up super close hanging out consistently and I did enjoy it. For some reason I just can’t get him off my mind it seems like. But I love my boyfriend and the thought of hurting him makes me sick to my stomach. We are happy together and have a great future planned. It just worries me that I have these thoughts and I feel like it must just be my heart maybe telling me something. But I’m confused and just don’t know what to do :( anyone have any advice?