If there were defined levels set by the governing body that she exceeded, then yes I would be OK with excluding her.
That doesn’t make her a man though.
I do see the organization that DQ’d her from worlds is now saying it was not a testosterone test, but they aren’t saying what kind of test it actually was. I’ve read several accusations of corruption from that organization which is probably worth mentioning though.