He’s begging me for sex. Am I an asshole?

I broke up with my boyfriend and I wanna know if I’m an asshole. He’s begging me for sex, saying that he doesn’t know when it’s gonna happen again for him and basically just wants to hook up and I told him no. I’m the one who broke up with him, and he’s the one hurting the most. His reasoning is “I know where you’ve been, you know where I’ve been. I don’t want to hook up with random people because I don’t know where they’ve been.” And my reasoning for saying no is it’s gonna be harder for him to heal and move on if we continue having sex. Of course I WANT to, but

I have been where he is and it’s not a good idea to be hooking up with an ex that doesn’t want to be with you anymore. I shot down his self esteem by rejecting him but it’s not even about that. I just do not want the relationship anymore and I’m not gonna drag him along and torture him no matter how much he says it’s just for sex it is going to affect him. Yes I want sex, yes I want him sexually, but I feel like this would be selfish of me and it’s not going to happen. I think I have good logic here, but I wanna run it by other people

I am not gonna do to him what my ex did to me. He’s not a piece of meat he’s a person and he deserves a chance to move on and heal