Self help books are your friends (out of fog, the new codependency, women who love too much, the narcissist play book and more). After years they are still on my bookshelf, the wisdom from them helped me to find my own worth, my own voice and massively helped later in relationships. You can buy used ones on amazon or vinted.
Try to understand what happened, why did it happen, what flags have you ignored and why. It is important, it will save you from doing the same mistakes in the future.
Build a good support network, friends and family you can be open with and ask for support and listening ear when needed.
I hear people are using chat GPT for counselling, not tired that but maybe give it a shot to see if it works?
Work on yourself, build a nice life, healthy food, exercise, walks, hobby, friends, places to go. Fill your time with nice activities, positive movies. Don't get stuck at what happened, get your lessons out of it and build your better future.
It'll take time, but you owe yourself that.
Good luck 💐