@Tabbyme2001,
Curious how long have you been bringing up getting married and having kids?
In either case, it appears he made the decision to be with his child. It sounds like he finally understands that he could not be a husband and a father to your children. As tough as it is and as unfair as it seems - you are better to know this than to start a family with him and he left.
I was maybe a little younger than you - I had dated a man (no kids or former or current wife) for 8 years. We had talked at times about getting married and so forth - at the beginning he was all about us eventually getting married but we were in early to mid twenties and neither wanted that yet.
So push forward 7 or so years. We go to a friend's wedding and so it was normal to talk about our future especially as this friend had been dating significantly less time than we had. He kind of stalled on the idea. So I am thinking now that we are in our early thirties about when we talked we would want to get married it doesn't appear he wants this any more (or reality struck).
Still I stuck with him - but I my mind and heart started drifting - do I really want to just continue dating? Then I went on a trip with a bunch of girlfriends - we were now all over the country and met up to go on skiing trip. While there I met so many single hot guys - I am thinking what the h*ll am I doing with this loser that has no thoughts to commit permanently while instead I could be dating all these different good looking guys!
Well when I got home - I broke up with him - starting just being single again and dating - nothing serious - then wouldn't you know 3 or 4 months later, I meet someone - I try to keep him at arms length but he is persistent.
We end up marrying about a year and a half later - have two girls and have been married for over 20 years.
Bottom line he isn't meant for you - and if you were to have stuck with him you likely would have been hanging on for more and more years.