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

Fix an incorrect regex in check_names.py