def repl_denormalize(text):
    """Replace complex characters with a regex covering all variants."""
    text = text.replace("أ", "[إأٱآا]")
    text = text.replace("ٱ", "[إأٱآا]")
    text = text.replace("آ", "[إأٱآا]")
    text = text.replace("إ", "[إأٱآا]")
    text = text.replace("ى", "[يى]")
    text = text.replace("ي", "[يى]")
    text = text.replace("ؤ", "[ؤئءوي]")
    text = text.replace("ئ", "[ؤئءوي]")
    text = text.replace("ء", "[ؤئءوي]")
    text = text.replace("ة", "[هة]")
    return text