Try this:
{__name__=~".+",container=""}
There needs to be at least one non-empty matcher (hence the + in the __name__ regular expression, * wouldn’t cut it). And the way you query for a missing label is by checking for equality with the empty string.