Twitter is a private platform, it's true. But the GOVERNMENT is prohibited from using the services of a private contractor to chill the exercise of one's first amendment rights.
Not that that will limit the creation of ethically dubious firms like ClearviewAI or Palantir.
The government can’t chill your right to tweet because you don’t have a right to tweet. Your tweets are public and you don’t own them, not even your own.
There is no law restricting the governments right to collect public data.