Do you ever feel like you suck?

Cause I do. Ever since my ex and I broke up 4 months ago, I've felt hurt and undesirable.. especially since he insults me for having mental illness. I try not to repeat the things he said about me, but it's hard to shake it off. How do I heal?