Feeling extremely stupid

I started talking to someone who I developed feelings for.. We talked a lot.  Only come to find out he only wanted sex 😓 glad I didn't give it to him, but I also miss the way things were.  He didn't want a relationship, just sex.  So upset