Is it wrong I fell in love with a good friends ex?

They broke up and her and I were good friends already. I know it’s totally against the bro code, but we fell in love and are getting married next year. I don’t regret the decision as we are super happy together, but I do still feel guilt a few years later. He stopped talking to me after I told him.
Is it wrong I fell in love with a good friends ex?
Post Opinion