I'm so sorry he hurt you. You didn't deserve this treatment.
I suggest you check out a blog and podcast called Baggage Reclaim with Natalie Lue. She talks about a s s clowns, Mr. Unavailables, and how to build your self esteem and have "values" based relationships.
You're not alone in feeling heartbroken... I've had some in life...
Hope you get stronger with each day...
This man-terd is trash.