Currently, setup.cfg describes Pygments as supporting Python 3.5 and higher. This is also what CI tests. Python 3.5 went EOL in 2020 and 3.6 did the same two months ago. Perhaps it would be time to bump to 3.7 or 3.6? In particular, if it becomes at least 3.6, f-strings can be used.