This sounds great. Just stay strong. Know that there is a lot of hard feelings to deal with up ahead. Anger, grief, resentment, regret, doubt.
Just remember you had no choice in any of this. Your ex unilaterally made this decision and now you have to just play the best you can with the hand you were dealt.
I know you are gonna come up on top.
Just lots of self care. And get yourself into a position of strength right now. "Become that person only a fool wpuld leave" thats for you, not him.