The last time I tried rg with pcre2 disabled (OpenBSD 6.4?), it SEGFAULT even with wxallowed :(
I just tried installing it into a clean OpenBSD 6.7 VM, and it ran fine out of the box:
# pkg_add rust
# cargo install ripgrep
# echo hi > asdf
# .cargo/bin/rg hi
asdf
1:hi