Don't starve like cooking system implementation

Godot Version

4.5

Question

How would you go about implementing a cooking system like Don’t Starve’s, where a recipe can be made using a combination of specific items and any certain type of items?

(Example: the froggle bunwich can be made using one frog leg and any kind of vegetable from carrots to cactus etc)

My current cooking system is like this

@export var ingredients: Array[FoodItems] 

Func cook():

If ingredients in recipe_dictionary:
    Return recipe_dictionary[ingredients]

But this only works if all items are the same, and can’t work with recipes that can take in any type of vegetable, for example.

Add a list of tags to each ingredient. Let each entry in the recipe be either the exact type or a tag.