It takes time. Most everyone here is speaking from experience of having been in your shoes. Guybrush is telling you straight. You deserve better. When you start believing it for true, you'll actually start getting it.
Meantime, you are coming out of a tough time. Be kind to yourself. Your feelings are normal, just control yourself enough not to act on them. Don't let anyone treat you like crap, that includes here in this forum.
Second thoughts can generally be amended with judicious action; injudicious actions can seldom be recovered with second thoughts.
--Cyteen by C.J.Cherryh