Python regular expresssion to extract the headers between two lines I’m trying to extract a headers between the two dotted line