I sent nudes to someone who’s not my boyfriend...

So last night one of my old things messaged me and we were having a nice conversation.

He can be very pushy and aggressive sometimes, and he started being a bit flirty, after trying to shut it down and ignore it he kept spamming me and I couldn’t sleep so I sent him a snap saying please stop messaging me I’m trying to sleep, he sent me a picture of his hard dick saying “you know what else can’t sleep?”

At this point I was literally going to drop it and block him, and before I can he messages me saying “you know I still have your nudes from last year right?”

So basically last year we had a thing going and we were sexual and I sent him pics big deal...

Anyway so like my face isn’t in them so anyone who doesn’t know my body couldn’t tell it’s me....

But any way I said “no you don’t, and if you do, why? Delete them?”

He told me if I didn’t send him pictures then he’d show my boyfriend and say they were current - thing is my boyfriend is very insecure because , if you make it in terms of “popularity” I have more friends than him and overall am more liked by more people.. he thinks I’m very out of his League - so even if I told him the truth he wouldn’t believe me, plus I’ve cheated on two of my past boyfriends when I was young, like 14/15 so yeah.....

So he says this and I say “I’m not sending you pictures, I have a boyfriend now” and obviously he knew this and said “well I’m sure he’d be more than happy to see this picture of you....” so I asked if I sent one would he delete all of them and we wouldn’t hear about it again? He said yes so I sent them and he kept his word and deleted all of them....

I just feel so bad, like it’s technically like I’ve cheated on my boyfriend which I never ever wanted to do... I think I’m going to have to break up with him :/

Please tell me the truth as to whether I’m a bad person for this, I can’t tell if I did the right thing or not