If they valued you, they wouldn’t have allowed themselves to lose you.
It can be painful to feel like you were not valued by someone who you cared about deeply. But it is important to remember that the way others treat us is a reflection of them, not us. If someone truly valued you, they would have made an effort to hold onto you.
The best thing you can do is focus on valuing yourself. You deserve to be with people who appreciate and respect you, and who are willing to put in the effort to maintain a relationship with you. If someone is not willing or able to do that, it may be better to let them go and focus on finding people who will.