What should I do

summer

So my bf found out that i use to talk to somebody while mean and him was going out and like I did it because I was angry and hurt and I heard he was talking to some other females to so I was thinking since he gonna do that imma do that to it was only flirting somthe guy I use to talk to in the past text my dude yesterday saying he should break up with me and that I'm not loyal and like he didn't break up with me he just hurt and now I feel like dumb I regret doing it but I didn't mean nothing when I did it I told him I'm sorry over and over again I told him I won't do it but he did it to me to before and when I brung that up he said it has nothing to do whith it what should I do ?