this FreeBSD regex fix seems to apply to the NetBSD copy of the code too? https://github.com/freebsd/freebsd/commit/981dd2aa38f37e4d0dd86225c619e900fc03d82e#diff-d7c26714f9432399b202eefcedb97491
as does this one? https://github.com/freebsd/freebsd/commit/95b1feb22b6da0549367ed0023308f0abfa8086b#diff-d7c26714f9432399b202eefcedb97491 (OpenBSD seems to have cherrypicked the former but not the latter. i'll mail them about that.)