A folder that starts with a separator (Linux, UNC) gave a pattern that
starts with a greedy [\\/]+, so a long run of separators that does not lead
to the folder took quadratic time (15.8 s for 100 000 `/`). The pattern now
starts with (?<![\\/]): a leftmost match inside a run always starts at its
first separator, so no match is lost.
Fixes#514
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>