There is a real danger of AI companies replicating the toxic practices of social media. It is time for policymakers to respond