> The problem is, that's science-denial, so yes, it would be inappropriate for the teacher to say that.
So - imagine that little Timmy has religious parents, and thus believes that God created the heavens and the earth in six literal days (a not-uncommon belief held in the fundamentalist Christian community). Suppose then that little Susie overhears it and asks the teacher about why her parents told her that life evolved gradually over the course of eons.
In my mind, an appropriate response could be "some people believe that the universe was created by a deity, and their views should be respected." But you've indicated that "some people believe <x> and their views should be respected" is in fact inappropriate.
What would you suggest be done, otherwise?
Here's a diagram of a few: https://i.redd.it/s44am9nqwes11.png
And that's just a narrow view of sexes through the lens of biology. Social science, anthropology, neurology, medicine, psychology, endocrinology and basically every other science that interfaces with human bodies generally agrees that sex is not binary in humans.
Once you've updated your understanding of what the science says on sex, come back and we can talk about gender, and how science agrees that gender is not only not a binary concept, it's purely a social concept.
Unpacking the accurate phrase "some people feel they are neither and their views should be respected" for a five year old or even an eight year old is not reasonable territory for a primary school teacher whose only training on the matter is political.