Here however, you shouldn't use a list comprehension as it makes you call `regex.match` two times instead of one.
Plus a dict iterates on keys by default, so you don't need to write `.keys()`.