The federal government's pending lawsuit against TikTok for alleged violations of the Children's Online Privacy Protection Act is a warning to the many other social media platforms that regulators are closely watching how they treat their young users, consumer protection and privacy lawyers said this week.