I have lost hope in dating. What do women really want?

Ive fell in love hard twice. One that i didnt even make it pass the talking stage. Another one is with my ex of 3 years (you can check about it on my profile i just made post abt it).

For this first girl, she have the looks that im really into. Shes the prettiest girl ever istg. But she never been on a date. And never really got the princess treatment. So i did. Im the first dude that takes her out. And i treat her like royalty. I did almost everything for her. Drives for 2 hours whenever we wanted to hangout. Pay anything for her. I bought her a lego of her favourite flowers. I made a surprise date for her. Etc.

And she never give anything in return. Somewhere near our last day talking, she started sending me random selfie and i take it as a good sign that shes comfortable with me. But one day i texted her and she never responded. She only opens it after a month. And she suddenly hide her status from me and set her twitter to private.

And just like that, she ghosted me without any explanation. But i stalked her through her friends, and i find out that shes talking to this other dude who's better looking than me. So i guess thats the reason. That dude has known her for years but never put efforts into her. And she went for that dude. Even after all i did to her.

For my ex of 3 years, i treat her better. Obviously bcs shes my girl. She has everything that i want in a wife. And just say that i treat her like her dream husband.

But these past 6 months we've been doing ldr and everything starts falling apart. She fell out of love and cant commit to the relationship. So she dumped me recently.

I did everything for her. I brought her to meet my family, i feed her, i pay for everything whenever we're together, i drove for hours just to be with her. And i almost bought her a promise ring. And just like that she left me cause she simply not feeling like it.

I did my best to treat them like royalty. I did everything they wanted and i gave them all my efforts, time and money. The first girl said that im so nice towards her and my ex said that i was never the problem, i did everything right. But somehow im never enough for anyone. Am i the problem? What did i do to deserve all this? Or am i just unlovable?

Tldr; ive loved 2 girls and treated them so greatly but still ended up not being their choice. Am i the problem? Am i unlovable?