In addition to the custom user field, it might be good to have a public forum policy to avoid the use of unnecessary gendered pronouns as site wide guidance.
For example, I find that when I say “him” or “her” it is almost always possible to avoid that by specifying the person’s name (their preferred name of course, as it exists on their user profile), and it has a side benefit of making the discussion clearer and more precise.