friend’s boyfriend flirts with me

hi i’m a f 22 recently my friends (female in her 20s) boyfriend (m in his 20s) has been flirting with me, i’m not sure if it’s my fault or not. i have told him to stop and finally he did. but i still have really bad anxiety about it. he is also friends with my boyfriend ( male in his 20s) who i just recently broke up with cause i cheated on him and couldn’t live with the guilt. i was worried my friends boyfriend would say something about the cheating to my boyfriend cause he has said some manipulative things regarding it. i don’t think i did anything to give my friend bf the wrong idea except that i should of been straight up and tell him to leave me alone i was just scared to make it awkward. maybe i had been flirty or something tho. I also have blocked out a lot of my life recently cause of poor choices so i really have no idea what i did so maybe i did do something. basically i have so much anxiety and i don’t think i can tell her does this make me a bad person? i just don’t think my mental health can Handel it right now i’m in a debilitating state of anxiety.