Plant ID Anise hyssop

I’m trying to identify a wild plant. The flowers smell like black licorice when you pinch them. I am unsure of its growing conditions besides its being in a small clearing in a forest near Thunder Bay Ontario.  …