Merge pull request #6811 from davidhorstmann-arm/2.28-fix-check-names-enum-regex

[Backport 2.28] Fix an incorrect regex in check_names.py