[PATCH 5.10 077/355] perf scripts python: exported-sql-viewer.py: Fix pattern matching with Python 3