Getting over my daughter father

We broke up early in my pregnancy. It was fine in the beginning of the relationship until I found out he cheated (by his own admission) then he left when I lost my job (I know all of this I shouldn’t even want him back). We have a beautiful 4 week daughter and honestly I still get some twinges of jealousy when I see him flirting with other women. Damn was I not good enough? Didn’t cook enough? I know I need to move on, but how?