kill all itens that has certain nbt tag 1.20.1

so i want to make something kinda like the #passable_blocks of the raycast tuturial but i'm not sure how to do it. So bassically i want to execute one kill command that will try to kill an array of items that have a certain nbt tag. Could someone help me?
Continue to help post