the error occurs because of the formatted text being on multiple lines. This is correct python syntax and I am not sure why it fails. If I do this there is no error ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する