The Filter Module is a very versatile item that can be used to whitelist or blacklist items for the machine. Various machines support this module (Builder, Modular Storage, Crafter, ...)
Blocks, items, and tags are supported. You can blacklist or whilelist and also require mathing on NBT and damage
Sneak right click on an inventory (like a chest) to add all items/block in that inventory to the filter.
Sneak right click on a block in the world to add that block to the filter.
In the GUI of the filter module you can also add tags or convert a block/item to the corresponding tags