"It remains unclear what standards Khelif and Lin Yu Ting of Taiwan failed last year to lead to the disqualifications.
The IOC, which is overseeing the boxing competition in Paris, does not test for gender, and there never has been evidence that either Khelif or Lin had XY chromosomes or elevated levels of testosterone. They have competed for years, including at the Tokyo Olympics and several world championships."
I believe this depends on the state/local laws.