How to wait for tab with title containing string?

Correct. That is because executeScript_SANDBOX supports only ES5 Javascript, not the newer ES6.