^^^^ moving on is a process. one thing you can't really expect it to be is linear. there is no right or wrong way to cope with a loss of any kind
my advice, from my personal experience; try not to beat yourself up about it. it's a lot easier said than done, but blaming yourself or bringing yourself down because of whatever it is that happened will only make you feel worse and slow down your progress. you are not the worst, you will not be alone forever, you are not unloveable. you loved, and you lost, and that's okay! it happens to everyone at least once.
it's good that you got out of a codependent relationship. one thing i should note is that if you might find yourself feeling caught up in it in a "what if" way - wondering if you had just done some things different, it wouldn't have ended the way it did - that could be a sign you're imagining it differently than how it went down. it ended for a reason, and even if it would've gone better had things been different, dwelling on it will not change your reality and will only get you stuck.
i don't know your situation entirely so i can't provide advice that would be super significant, but that is some of my thoughts for you as i'm also dealing with moving on currently.
good luck, stay safe, and take care. you will always hold a place here and there are always things waiting for you.