Sphinx versions 2.1.1 and up can use RE2 (dev-libs/re2) to preprocess data before indexing. It'd be great if this feature could be enabled in the ebuilds. Reproducible: Always
Support for RE2 has been added in sphinx 2.2.10.