$w('SelectorTags') doesn't exist?

It’s just an IDE bug. The editor shows you a false error.
But the code will work as expected.

$w('SelectionTags').value = [];