help me

i told some online friends and friends my ex doesn’t know about our breakup. i stood up for him and even agreed that he’s right, we do need a break. but one of my friends that’s his best friend sent him EVERYTHING i said even thought it’s all positive about him. we ended on such good terms and now he hates me, all because i needed to get everything off my chest to my friends. i didn’t know you weren’t supposed to tell people about your breakup. i hate myself. i’ve probably lost him indefinitely now because he’s mad i told people he has never met before. am i a bad person? i didn’t mean any harm by it, i was just trying to feel more content with the breakup by talking about it. and for some reason everything is ruined. am i a bad person???