Thanks to a lot of work by Aleksei Rybalkin, GLib now depends on libpcre2 rather than libpcre. The Meson configure flags affecting it are unchanged. This should help distributions which are trying to get rid of libpcre (as it is deprecated and unmaintained).
See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2529