My boyfriend is a jerk

My boyfriend broke up with me a few days ago and every day he still texts me and basically calls me names and tells me off.

He started comparing me to all of his ex girlfriends and it really made me mad and I said “ I’m probably the prettiest and nicest girl out of all of them” and I said that because he was just pissing me off and hurting my feelings

And then he says “you’re not even that good looking to say that”.

After that, I can not ever forget that sentence from him. I do have insecurities and having a man that you spent years with and used to be my best friend and now he’s saying I’m “not good looking”. Just wow.