Slept with ex.

So I went back to the town were me and my ex met and spent our whole relationship, I was only there over night, our breakup was 2 months ago and was pretty messy and sour. Now we both have feelings for other people, he hit me up and was being cocky and well his usually nasty self, then he asked for sex how could I not I still care for him, but is it wrong of me to have slept with him? I don’t feel like it’s sent me backwards but we kinda had a talk about why we broke up and when I told him I’ll always care about him (he was my first love) he started crying.. I felt bad that he was crying, I feel Guilty because I’m the one who called off the relationship. And the go and sleep with him when I’m in town, and this being the first time I’ve seen him since the breakup. Should I feel so Guilty because of the hurt I’ve put him through with our breakup?

*Edit* we were together almost four years, there was just to many differences between us to continue the relationship, and he was always cocky, and self Centred and didn’t care if he hurt your feelings. I loved him anyway, but there was cheating on his end during our relationship, one of the many factors the relationship ended.