sphinx: fix re2 option.

Add it to configure args.

References #30782.

Closes #31695.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>