Question: is anise extract a nut?
Answer: IIRC Anise is a seed, so you should be fine. DD has a confirmed peanut allergy, we are avoiding all tree nuts and star anise, anise seed and anise extract have never been a problem. (THere is a kind of hard candy that has an actual anise seed in the middle.