reg = '(\\d+)[^\\d]*(\\d+)[^\\d|\\(]*(\\(P\\))*'
line = (
    """35 of Jon 2013 trans. (P) 31 of Sansa 2014 filled 3232 of Arya 2014 empty 345 of Bran 2011 sealed, (P)"""
    )
print('Output by reg')
for _ in re.findall(reg, line, re.IGNORECASE):
    pass
Python Regex help required