Elon has been very clear about this: he follows the laws of each country. That is, if the government wants to restrict free speech, they must pass laws (or the equivalent in court) to do so and Twitter will follow their laws.
If their government wants to act in contrast to its own laws, then Elon will fight them.
He’s not trying to uphold some universal free speech liberty.