If everyone involved in this is telling the truth, ie. He was thought to be female at birth, raised as a girl, legally a girl etc, and now as an adult looks like that. It's more likely than not that this is the exact DSD he suffers from.
The fact that everyone genuinely thought he was a girl until the puberty fairy brought him a penis, doesn't make any difference now.
He knows he's a man. His coach knows he's a man. His doctor knows he is a man.
And He is deliberately cheating.
It is hard not to feel sympathetic, although that doesn't mean it's OK to compete.
The International Boxing Association performed a test on both Imene and the Taiwanese boxer.

"On 17 March 2023, both boxers were asked to take a further blood test. That happened, and on 23 March the results came through, and it demonstrated the chromosomes that we referred to within the competition rules – that make both boxers ineligible." In other words, XY chromosomes indicated chromosomal male sex.
The IOC doesn't do karyotype testing because they consider it a violation of an athlete's genetic privacy and think announcing to an athlete (and the world) "you're a man" can be very damaging to an athlete. They also attempted to argue that the IBA had faked the tests to discredit two athletes who'd bested Russian athletes.
The IOC instead base it on testosterone level

The X marks the potential level an athlete can be at and still compete in the female category. This is noticeably higher than the levels typically associated with a castrated man; chemical castration is considered to take place at ≤50 ng dl −1. Surgical castration usually leaves the patient with testosterone levels <20 ng dl −1. For transgender women they require under 10 n/mol per litre for at least 12 months to compete, although Imene would not be classified as transgender. Obviously someone who went through male puberty and then dropped testosterone levels would still have benefits.
However they apparently dropped this blanket rule? Something about no longer requiring athletes to undergo "medically unnecessary procedures" in order to compete,
ensuring a new fairness, inclusion and non discrimination framework on the basis of gender identity and sex variation. It is now entirely unclear what tests they do if any in any particular sports, and it really could be a case that they're just going
"it says an F in her passport, so that means she can compete in women's boxing".
Like I said, I feel sympathy. It must be traumatic for a girl to suddenly start growing into a man and feel like a freak, and I guess discovering an aptitude for sports and becoming a professional athlete seems like a consolation, and if the IOC
says you're not cheating then you might feel emboldened to carry on. But this is actually insane if there's factual evidence that this person is an XY male with elevated testosterone but the IOC is ignoring it because acknowledging it would be mean.