結果 : extract string between square brackets python