I’ve never tried it in a beef stock like that. It’s usually something I reserve for mulled wine, cocktails, that sort of thing.I learned it was star anise
A quick search here proves I first bought it in 2021, Christmastime, and I’ve used it in glazed carrots and fried cabbage.