<human>:  Python Regex for hyphenated words
<bot>: Here is some code to python regex for hyphenated words in `text`

re.findall('\\w+(?:-\\w+)+', text)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.