It's stupid headlines that confuse the issue.
The school is using the legal exemptions in the equality act to provide single sex education.
Girls who 'identify as' something else are still females and therefore welcome.
Male children are not female and are therefore excluded.
This whole bullshit narrative of having to 'include' everyone in everything, usually for the benefit of males and at the expense of females, is really wearing thin.