regex = re.compile(
    """[CDEFGAB]                 # Notes
        (?:
        (?:maj|min|m|sus|aug|dim) 
        [0-9]?                    
     """
    , re.VERBOSE)
result_list = regex.findall(line)
I need help writing a regular expression for detecting chords