hurting....

So this guy i been seeing for a year now....well we beeen hooking up and getting into our feelings possibly talking about relationship.....we had sex last night and the next morning he called his ex and said he missed her....he's been off and on again with her for 5 years but that doesn't excuse what he did. He broke up with in November that when we connected again and he ghosted me for 4 months for her. He told me the othetday he missed her and he didn't realized how much he missed her. I feel hurt and betrayed :/ we aren't dating but I invested so much time and feelings. She doesn't even treat him righht. :(