Mate I appreciate that you seem to be coming at this with honest curiosity, but do yourself a favour and get this information from reputable news sources.
This whole thing is so polarised and so full of misinformation that anything you read from randos on social media you have no way of knowing if it’s credible or complete bullshit.
My take is irrelevant. Here’s a reputable news source about the issue: https://www.abc.net.au/news/2024-08-04/paris-olympics-imane-khelif-clinches-medal-in-boxing/104181158
Tl;dr: she is and always has been a woman. The source of the controversy is the International Boxing Association, which claims she “failed an unspecified eligibility test to compete last year over elevated levels of testosterone.”
Later in the article, in reference to the IBA: “the Russian-dominated body — which has faced years of clashes with the IOC — has refused to provide any information about the tests, underscoring its lack of transparency in nearly every aspect of its dealings, particularly in recent years.”