If Twitter decides tomorrow to ban the right-wing from their platform. They absolutely legally can. If you watch the recent Joe Rogan video with Tim Pool and Jack Dorsey. They didn't realize they were slowly banning the right-wing and allowing left-wing terrorists to stay on Twitter. They absolutely didn't realize they were doing this and they are going to look at fixing this.
The government however could come in and simply make it that you have freedom of speech on social media. So if Twitter bans someone for saying "a man cannot be a woman" that person can sue them.
The democrats will NOT do this however, the current censorship on social media is benefiting the left-wing.