https://regex101.com/r/2CTpRT/1
why isn't this regex in Python capturing the second line, but on regex101 it works.
Python code
import re
inputs = ["test", "July 2021 (AIS-2817) - new SKU", "AIS-703 renaming"]
PRODUCT_IDENTIFIER_PATTERN = re.compile(r"\w+-\w+")
for i in inputs:
result = re.match(PRODUCT_IDENTIFIER_PATTERN, i)
print(i, "result", result)