Query item filter

please tell me, I want to add to the item I only need the Item by name, I need to do this
there are elements of
Gi0 - IN
Gi1 - IN
Gi2 - IN

if I want to summarize all INs, then I write / - IN / and as an example add all INs except Gi2