Check whether a Host pattern matches a given alias.
OpenSSH Host keyword matches only against the target alias typed on the
command line, never against the resolved HostName.
Returns true if the host pattern contains wildcards, character classes,
negation or whitespace-separated multi-patterns (*, ?, [], !, space/tab).
These are SSH match patterns, not concrete hosts.
Returns true if any hop in a (possibly comma-separated) ProxyJump value
matches the given alias. Strips optional user@ prefix and :port
suffix from each hop before comparing. Handles IPv6 bracket notation
[addr]:port. Used to detect self-referencing loops.
Match a text string against an SSH host pattern.
Supports * (any sequence), ? (single char), [charset] (character class),
[!charset]/[^charset] (negated class), [a-z] (ranges) and !pattern (negation).