Unexpected token "punctuation" of value "?"
The issue was a plugin’s composer.json that was loading an older version of Twig as a nested dependancy, which was overriding Craft’s Twig.

Running a composer update for that plugin rectified the issue.