import re
rx1 = re.compile(r'^\d+\.\d+\.\d+-\w')
rx2 = re.compile(r'^\d+\.\d+\.\d+$')
def extraction(parentTag):
	return [x for x in parentTag if any(rx1.match(e) for e in x) or not any(rx2.match(e) for e in x)]

expected_input = [
    ['419adf7', '1.0.22-SNAPSSHOT'],
    ['1.0.24', '82e13c1', 'master'],
    ['1.0.25-1618314650'],
    ['1.0.10', '7ad4886'],
    ['1.0.13-1589279873', 'e597811'],
    ['73a3788'],
]

expected_input = extraction(expected_input)
print(expected_input)
#Current Output = [['1.0.25-1618314650'], ['1.0.13-1589279873', 'e597811']]
#Expected Output = [['1.0.25-1618314650'], ['1.0.13-1589279873', 'e597811'], ['419adf7', '1.0.22-SNAPSSHOT'], ['73a3788']]