Debian has started warning (https://lintian.debian.org/tags/dependency-on-python-version-marked-for-end-of-life.html) about things that use Python 2 and not 3 - including MediaWiki via SyntaxHighlight/Pygments.
I *think* we just need to update https://phabricator.wikimedia.org/diffusion/ESHG/browse/master/pygments/create_pygmentize_bundle to point to /usr/bin/python3, and regenerate the bundle. And then announce/document that highlighting requires Python 3 to be installed.
Tagging as a 1.31 blocker as this extension is bundled with the tarball and the 1.31 support cycle is planned to end in 2021, while Python 2 goes EOL in 2020.