friends with benefits

I had a guy friend with whom I was real close. then one night he started texting really naughty and was asking me to sext him. I protested at first and then I gave him. we had awesome sex for 7 months. we sext each other daily and meet once a week.

now all of a sunden he tells me that he is confused and want to end this relation. coz yesterday his ex comes out of nowhere and wants to patch up. I said ok we can end this and said bye to him.

I feel really broken. I don't love him but I feel real bad. I feel heart broken.

tell me what I should do to feel better. and give me some tips or an opinion about all this.

ps. we both are of diff religion and of real conservative fami lies. so no one in real life knows about this.