I have an idea.
Create a list of all the products and their ingredients
Then you can sort them according to incompatible ingredients
e.g. I enter nuts and all products with nuts are displayed
but you can also do it the other way round, all products without nuts are shown.
Greetings
Migiking-1