As someone who got a lot of positive value out of parts of social media from around age 14, I think this needs to be done in a more careful way than it was done here. Specifically, I don't think that communication apps such as WhatsApp/Messenger/etc should be banned as they form a key part of communication in and out of school, staying in touch with family, etc.
What I'd like to see is more nuanced laws around the exposure of children to social media algorithms. For example, should 14 year olds be on Instagram? Well Instagram DMs are the chat app of choice for many people, so they should probably get that (with safety and moderation controls). How about the public feed? Maybe? But maybe there shouldn't be likes/dislikes/etc. Or maybe there shouldn't be comments.