There’s no magic to fix this like there’s no magic that will make you a physicist by next month.
It will take time & effort. And no, no pill will fix this either & it could easily make it worse.
Slowly build those social skills if that’s what u want. Read books, watch videos, get counseling, practice, practice, practice.
Keep in mind, “ Loneliness is primarily a psychological state. A person who spends a lot of time alone, and is ok with that, is not lonely. Conversely, there are people who say they feel lonely even when they are in the company of others”.
Maybe u just need to find the right balance. Whatever u do, figure out first who u really want to become. Is very easy to take the wrong route again, & again & again…
BTW, the counselor (therapist or whatever) doesn’t have the answer either. The answer resides inside you. Use the counselor as a rubber duct. Talking about it, is like doing an extensive research.