Well you're articulating the result you want, but not the mechanism for how you expect to achieve it. A law has to articulate which behaviors are legal or, and what the penalties for non-compliance are. Otherwise we could just pass laws saying 'the economy has to make everyone prosperous, people have to feel safe and fulfilled' and call it a day.
So, what actual rules do you want to make in service of these desirable outcomes? They have to be clear and straightforward enough that they can't be just gotten around with clever lawyers or argued past the point of meaninglessness by shills posing as philosophers. I do not like the idea of everyone having to show ID online (or even much in real life), but I can see why it's popular because it's very easy to explain and understand.
What I'd recommend is research on specific behaviors taken by social media companies to determine which are shown to cause harms. Some of that is already done by the companies themselves. If, for example, infinite scrolling is seen as a practice that increases addiction to the platforms, a law can be passed that makes it illegal to implement infinite scrolling. A law like that is pretty easy to explain and understand. TikTok was called out for sending push notifications to children's phones late at night to drive compulsive consumption and disrupt sleep patterns. Laws can be passed to limit how many unsolicited push notifications platforms can send and during which hours. Laws like that focus on the actual problems themselves, regardless of which platform is doing it, or who they are doing it to.