CLN: changed .format to f-string in pandas/core/indexes
towards #29547

- [ ] closes  
- [x] tests passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Thanks, @makeajourney . Welcome to take more of these.