CLN: replace %s syntax with .format in core/indexing.py
Progress toward issue #16130. Converted old string formatting to new string formatting in core/indexing.py.

- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`