There's is no other idea than bringing her back. We might as well stop pretending we believe in democratic ideals and a fair criminal justice system otherwise. She's not Malta's problem, and she's not the problem of any Muslim country. She's a UK citizen, accused of breaking UK laws, and therefore should be brought back to verify and face those those charges at home. The minute you start picking and choosing when and where you want to apply laws, you open up a Pandora's box of fuckery where states would use this as precedent to go after other people they want to deal with in a similar fashion.
The notion where states can just strip brithright citizenships for any crime is insane. If a person can be a prolific serial killer and not lose their citizenship at home, and another can actively work with a foreign power to spy on their own country and they still don't lose their citizenship, then there's no way a teenager can be stripped of her citizenship because she joined ISIS.
Ok, so let her return and face justice thus potentialy separating her from her child and sent her behind bars, maybe forever.
Plus, the UK will have accepted back on their soil an ISIS heroine, where against the odds, escaped from her country and joined them to support their demented ideals. The trial and everything that comes along will make her an example of ISIS "courage".
The crime she committed is not just any crime, disavowing your country, effectively choosing another country over the one you were born is not shoplifting, it is a strong statement saying "You bunch of idiots, i do not want to be a part of you anymore.". It is not more like stripping birthright citizenship but more like following the wishes of her to change citizenship.
Also do not use espionage acts in this case. Philby's circle wanted a socialist/communist England not to become Russians. She wanted to become ISIS and stop being British. Serial Killers do not want to join the enemy and fight their country there is no cause for nationality change.
She's not a teenager anymore and she shows absolutely no remorse about her actions. If she would have then this would have been a very different discussion entirely.
I can understand what you say about democratic ideals, although the current British affairs show some lack of them, and i can really get behind them and i know that she is not any other country's problem but there are so many more ways to peel an egg that to hit it with a hammer.
Choosing a host friendly country for her and her child to live, not left with out monitoring and have her live in a far more peaceful environment is a subtle, humaine and wiser approach to the issue, it does not separate the family and everyone is happy.