Updates `text` and `exceptions` submodules for bounds bumps. Addresses #22767. (cherry picked from commit 3efd1e99)