The longer you are away from him, slowly your confidence will come back.
You deserve better. Even of you don't believe it right now. One day you will look back from a much happier plaace and think why did i put up with that for so long.
If you're 2 years in, it's not going to get better from here. You need to get to the point where you realise that you are the one doing all the work, changing things to managse his moods etc and he's doing nothing. It won't change. So you need to be strong and move on.
When he realises you are backing off he will no doubt make lots of false promises, try not to be swayed by these and see them for what they are so that you are not in the same situation or worse in a years time.
Living with disappointment and resentment from the person who is supposed to love you is no way to live and a terrible attack on your self esteem.
Stay strong OP. You're lucky you don't live with him or have kids with him so you can make a clean break.
My advice would be to keep yourself really busy and to block his number. Give yourself time to get over him, no matter what false promises he makes. Do it for yourself and your kids.
You will be incredibly hard pushed to find someone in your situation that has stayed together and been happy. You will find a million success stories of people who have left this situation and are much happier.
You deserve it. Hope you have a good day OP. Spend it filling your headspace with you and your dc not him.