So confused.

I’ve been with my boyfriend going on 5 years. And recently innocently enough takes to a long time family friend about something completely unrelated and all my feelings I once had for him came back. Besides the obvious problem I also found out he slept with someone close to me. I know I’m not right in any of this but my feelings are real. Help.