@staticmethod
    def wildcard_match(hostname, pattern):
        # Simplified = add steps to disable fnmatch handling of [ and ]
        fn_pattern = ''
        for c in pattern:
            if c == '[':
                fn_pattern += '[[]'
            elif c == ']':
                fn_pattern += '[]]'
            else:
                fn_pattern += c
        return fnmatch.fnmatch(hostname, fn_pattern)
Match against patterns using '*' and '?' using simplified fnmatch
dataset/ETHPy150Open radssh/radssh/radssh/known_hosts.py/HostKeyEntry.wildcard_match