These years can seem like some of the hardest years of life for some. Hang in there... you will get through it. Feeling alone is a normal feeling that many people feel all the time but it is something nobody talks about. There wouldn't be love in the world without loneliness.
It may hurt a lot sometimes but try to be grateful for what you do have in your life. These 'friends' dont sound like real friends if it is to hard to hang out with them.
I can tell you this because over the past year I have been in a similar situation to you but I have realised I was to dependent on friends to be happy. The problem was I cared to much about people and trusted them to much now I only trust two people in my life. My bro and a close friend.
If it ever feels overwhelming, like if you do come across a friend or someone you can trust that you can talk to, it will help you, but don't count on it. You can only count on yourself to get the support you need.
You are not a loser