with open('file') as f:
    rawtxt = [i.strip() for i in f if i != '\n']
l = []
for i in [rawtxt[i:i + 2] for i in range(0, len(rawtxt), 2)]:
    l.append((i[0][11:-1], i[1]))
regex text between two string python