OP, I could have written your post when DS was that age. He was desperate to be liked and included which made his behaviour too full on or performative. he felt there was something wrong with him.
There was nothing wrong with him except him believing there was.And him wanting to be liked. As soon as he started doing CBT it taught him he's fine as he is, it's OK if others are indifferent to him, or sometimes ignore him, that these aren't indicators of anything wrong with him.
He learned to be happy in himself and to be himself, to feel less emotional about rejection. And as soon as that happened, his social skills and his personality blossomed and he has made so many friends that he can't keep up. He went in one year from sobbing every night at having not a single friend, to texting me and saying, I have been invited to seven parties tonight, what should I do?
I'm telling you this to give you hope because I know how you feel. I felt ill, physically sick for him for years if I'm honest. And now he is fine. it can definitely happen, but your DD needs to learn she's 100% fine as she is, not everyone will like her and that's fine too, people actively disliking her if she's done nothing mean is entirely a reflection on them not her. Her situation can change at any time. DS's did.
At his lowest point, I encouraged ds to enjoy friendships of all different types, shallow and shortlived, unusual, from all sources and people he thought he had nothing in common with. A group of people he thought were very different from him ended up being his close friends, and an elderly man who shares a niche hobby with DS has become not only a good friend but a mentor - and introduced him to some great work contacts.
Can she start to enjoy really casual friendships, hang out with people who are kind, even if she thinks she has nothing in common, join some outside school clubs - a youth group, church group, sports, music or drama group where she can meet new people, especially after a bit of CBT so she can practise new more relaxed attitudes to making friends.
She'll get there.
to her and you!