He led me on after everything

Boyfriend said he didn’t “feel a spark” or saw us in the long run after telling me how much he liked me, saw us in the long run, how he misses me, how beautiful i am, etc. literally all the way up until the sudden split. I just found it odd and random for him to say that because how do you expect to feel that “spark” or get wife vibes if all he did was talk about himself, on dates talk about past girls/exes, almost daily asking if I missed him/like him (started getting weird) never took us out but only hung at his place or with his friend group, nor made effort to get to know me? Like what a waste of 3 months for me. My toxic trait is getting attached (hopeless romantic) and giving the benefit of the doubt to people, especially those who don’t deserve it so I feel like a clown. So when he told me this, I just sat there and agreed and told him thanks for the honesty. Of course after he left I started to have those would’ve, could’ve, should’ve thoughts race through that I should’ve have used to correct him/put him in his place, and so I feel he got away with how poorly he really treated me, on his time and convenience and probably now onto the next girl already. I know I’m wifey material. I’ve been engaged before, but he passed away. I finally put myself out there again and this is how I get treated right off the bat?? 😓 I cooked for him, got him flowers out of condolence for his family member, always checked in with him, baked him cookies, wanted to spend time together, etc. I felt taken for granted and blindsided at the same time, like hooked on the line for his own needs. I’m just disappointed and embarrassed. Like wtf? Why say you want something serious with me and then back peddle on everything, especially when nothing made sense to what he was saying? Dude is 31 too…like bro….be a man and figure out your shit instead of disturbing people you’re not ready for. 🙄 Anyways this ruined it for me with the thought of wanting to date again, because now how do I know the next guy won’t pull a similar stunt??