Labels are specific to Opus and not something that Windows Search knows about, so they only work with Opus's internal Find panel and filters, not with Windows Search queries.
The code above is not a stored query, it's button code which you can put on a toolbar button or hotkey. Here's how.