I do it similarly to @Goddess. There’s a character_singular variable that gets set to true or false depending on their gender. For example, in the sample code I’ve created a variable called freddie_singular - if Freddie’s pronouns are he/him or she/her, it’s set to true, and if it’s they/them, it’s set to false. Then in the text, this is how I do it, with multireplace:
When you meet Freddie, ${freddie_he} @{freddie_singular introduces|introduce} ${freddie_him}self.
like @Havenstone I tend to avoid it, but if it comes up in the writing, yes you would want to do that!