Fixed #23460 -- Allow a literal `%s` to be passed through extra select

- [x] Tests
- [x] Docs
- [x] Changelog