This was a mistake by many people at Twitter. It is definitely allowed.

Whether or not you agree with using someone’s preferred pronouns, not doing so is at most rude and certainly breaks no laws.

I should note that I do personally use someone’s preferred pronouns, just as I…

— Elon Musk (@elonmusk) June 1, 2023