Pattern for detecting a fact hash anywhere in text.
Has the global flag because the primary use is String.matchAll over
cell data / fact bytes. Callers that only need to validate a single
known string should use is_fact_hash instead — RegExp.test mutates
lastIndex on global patterns.
The trailing (?=blake3:|[^0-9a-f]|$) lookahead enforces a right
boundary so a 64-hex digest is matched only when it actually *ends*:
followed by a non-hex char, the end of string, or the start of another
blake3: ref. This rejects malformed over-long runs (blake3: + 65+
hex) rather than silently truncating them to a different valid-shaped
hash, while still matching two refs concatenated with no separator
(the blake3: alternative is needed because the prefix itself begins
with the hex char b). A bare (?![0-9a-f]) would instead drop the
first of two glued refs.