REGEX is implemented using Pattern.match, which only checks the beginning of the search string:
If zero or more characters at the beginning of string match this regular expression, return a corresponding Match
This means a regular expression like world will not match a trait value of hello-world.
We should be using Pattern.search instead: https://docs.python.org/3.11/library/re.html#re.Pattern.search