with open(file) as f:
    start = []
genes = []
for line in f:
    st, gen = re.search('\\bexon\\s+(\\d+)\\b.*?\\s+gene_id\\s+"([^"]*)"', line
        ).groups()
start.append(st)
genes.append(gen)
print(set(start))
print(set(genes))
splitting lines with " from an infile in python