Maybe it needs to be called-out more, since the GLib docs don't do a good job either.
Yeah, glib documents it on the replace function https://developer.gnome.org/glib/stable/glib-Perl-compatible-regular-express... not in the regex syntax section so its not that obvious.