Social media is not the problem here. It is a problem, but it's not the cause for what you're describing.
I got my career (programming) from social media and online social interaction in general. Sure, I did the bare minimum on homework for efficiency, because I disliked the extra steps and writing that teachers wanted of me (I probably have dysgraphia and can't write well), and preferred just to get the answer. It was never explained that they weren't scoring or teaching the answer, and that they were instead measuring the method. (That was a failure of the school system. Big problem in general. I digress.)
Social media allowed me to meet others like me I otherwise never would've met. Allowed me to learn things from others like me I otherwise may never have learned. Allowed me to find the people that I could get along with rather than trying to make do only with the people physically close to me.
Sure, TikTok and whatever didn't exist back then. They're terrible, even if they manage to deliver some goods. I don't have a TikTok account, don't have a Facebook account, etc.
I do have a Discord account. I did have a Cohost account, before they shut down. I have Reddit and Hacker News. Those are where I feel I spend most of my non-work, non-hobby time. I use Discord almost entirely for private communications. I used Cohost almost entirely for making connections on Discord. I use Reddit to offer advice to and receive advice from others. I use Hacker News for some sample of current events and to offer my thoughts and discussion on them.
I do have some bad habits. I scroll Twitter every once in a while, though I do find many memes and other posts to share with friends and relate over.
And social media has done some bad for me. I won't elaborate on this but I had a few very major traumas through social media when I was 12-14, and some lesser ones more recently.
But it's been a major driver of good in my life for a long time; fulfillment and connection I never could have had otherwise; and of course hard lessons I would've eventually needed anyway.
There's an argument to be made that I just wasn't the type of young person that social media is particularly harmful to, but it's done me some major harms, some exactly the type of harm that's used to protest against it, and yet none of the harm was social media's fault. All of it was interpersonal interaction. All social media did was reduce the friction to that interpersonal interaction.
I think you're conflating social networks with social media