Why does he keep leading me on??

Of course we were never in a relationship to begin with we just ended up with a son as the result of us meeting at my job. I was bartending and he was drunk and flirty. I brought him home with me that night and a few weeks later I found out I was pregnant. Since then he’s maintained the fact that he just wants to be friends but then he will have sex with me. Now he’s dating someone else and I’m so heartbroken. How do I move on. Why am I not good enough?

NO I DID NOT RAPE HIM HE CONSENTED