How to get over my Ego?

I know I did what was best by leaving him, but I still wish he fought more to keep me and I wish he reached out to me afterward.

How do I stop caring?