This fix resolves github issue #23019, where the user cannot extract the formatted output with %(game)s.