code: def get_soql_fields(soql):
      
      soql_fields = re.search('(?<=select)(?s)(.*)(?=from)', soql, re.IGNORECASE)     # get fields
      soql_fields = re.sub(' ', '', soql_fields.group())                              # remove extra spaces
      soql_fields = re.sub('\t', '', soql_fields)                                     # remove tabs
      fields = re.split(',|\n|\r|', soql_fields)                                      # split on commas and newlines
      fields = [field for field in fields if field != '']                             # remove empty strings
      return fields
docs: Gets queried columns names.