Confused girl

I had sex with a guy a while after me and my ex broke up .
And I was doing it to break the bond or the love I have for him , it didn’t work
Now we’re back together , I feel guilty , I can’t tell him and I still love him so much .
I don’t know if I did anything wrong because we weren’t together .