A German teenager who joined Islamic State is now being held in detention in Iraq and says she regrets joining the jihadist group and just wants to come home to her family, media reported on Sunday.

Der Spiegel magazine reported on Saturday that four German women who joined Islamic State in recent years, including a 16-year-old girl from the small town of Pulsnitz near Dresden, are being held in an Iraqi prison and receiving consular assistance.

Lorenz Haase, senior public prosecutor in Dresden, said he could confirm the teenager, named only as Linda W., had been “located and identified in Iraq” and was receiving consular support but could not say anything on her exact circumstances.

German broadcasters NDR and WDR and newspaper Sueddeutsche Zeitung said they had interviewed Linda W. in the infirmary of a military complex in Baghdad and she told them she wanted to leave.

“I just want to get away from here,” she was quoted as saying. “I want to get away from the war, from the many weapons, from the noise.”

She added: “I just want to go home to my family.”

The media outlets said the teenager had told them she regretted joining IS, wanted to be extradited to Germany and would co-operate with authorities.

They said the girl had a gunshot wound on her left thigh and another injury on her right knee that she said was caused during a helicopter attack.

“I’m doing well,” she said.

Linda W. was found as Iraqi forces liberated the northern city of Mosul from Islamic State extremists, German and Iraqi officials said Saturday. She will be interrogated next week by Iraqi officials.

Three Iraqi intelligence and investigative sources confirmed to The Associated Press that the German teenager, who was apprehended in the basement of a home in Mosul’s Old City earlier this month, was Linda W.

There is the possibility that Linda might be put on trial in Iraq. She might be expelled for being a foreigner or, because she is a minor reported missing in Germany, she could be handed over to Germany

Lorenz Haas, German prosecutor

The girl is in good health, the Iraqi officials said, adding that on the day of her arrest she was “too stunned” to speak but now she is doing better. They said she had been working with the IS police department.

Linda W. could theoretically face the death sentence, according to Iraqi’s counter-terrorism law. However, even if she is sentenced to death in Iraq, she would not be executed before the age of 22.

Photos of a disheveled young woman in the presence of Iraqi soldiers went viral online last week, but there were contradicting reports about the girl’s identity.

The German teenager had married a Muslim Arab she met online after arriving in the group’s territory, the Iraqi officials added, speaking on condition of anonymity because the information was not public. They said Linda W. was one of 26 foreigners arrested in Mosul since the retreat of the extremists there.

So far, the young German has not made any statement. The officials said she is currently being held together with other foreign women at a prison near Baghdad’s airport. Starting next week, she’ll be investigated by the Iraqis, who will bring in German interpreters for the interrogation since she does not speak much Arabic.

Haase, the German prosecutor,saidthe girl ran away from her family home in Pulsnitz in eastern Germany last summer. It’s not clear yet whether she will return to Germany, he said.

“We, as the public prosecutor’s office Dresden, have not applied for an arrest warrant and will therefore not be able to request extradition,” Haase said. “There is the possibility that Linda might be put on trial in Iraq. She might be expelled for being a foreigner or, because she is a minor reported missing in Germany, she could be handed over to Germany.”

The 26 foreigners found in Mosul included two men, eight children and 16 women, the Iraqi officials said. Some of those arrested were from Chechnya, and the women were from Russia, Iran, Syria, France, Belgium and Germany.

In addition to Linda W., the Iraqis found three other women from Germany, with roots in Morocco, Algeria and Chechnya. The Iraqi officials said the German-Moroccan woman has a child and both were arrested in Mosul about ten days ago.

They said the women allegedly worked with IS in the police department. Their husbands were IS fighters but their fates were not clear.

French and German Embassy personnel have already visited the arrested women, they said. The children will be handed over to the countries they belong to, while the women will be tried on terrorism charges in Iraq, according to the officials.

More than 930 people, among them several girls and young women, have left Germany to join IS in Syria and Iraq in recent years, the German news agency dpa reported.

While some have been killed in battle and suicide bombings and others have returned to Germany, there’s also a large number that are unaccounted for, German security officials say. Many of them were radicalised via social media.

Local newspapers reported last year that Linda W. was in touch with IS members online before she ran away from home. She started wearing long gowns before she disappeared from her family’s home last summer. Her mother later found a copy of the girl’s plane ticket to Turkey under a bed, German media reported.

The mayor of Pulsnitz, Barbara Kueke, told dpa on Saturday that she was relieved the girl had been found. She described the teenager’s family as very reclusive.

Lueke said the school had been aware of the girl’s conversion to Islam and the principal had talked to the parents about it, adding that “it was very surprising, though, that the girl has been radicalized in such a way.”

In a different case, a French woman captured earlier this month in Mosul with her four children is facing possible prosecution in Iraq for allegedly collaborating with IS.

The woman, believed to be in her 30s, was arrested July 9 along with her two sons and two daughters in a basement in Mosul’s Old City, according to Iraqi intelligence officials.

Two Iraqi intelligence officials said on Wednesday that the woman is being investigated in Baghdad and could face terrorism charges for illegally entering Iraq and joining IS, and that the French government wants the children handed over to France.