I'm in western KY and tansy is not invasive here. If you are worried about it becoming so, plant it in containers. I also have lemon balm and it does spread quickly, as does sweet annie and any of the mints. I think just about any herb can become invasive if let go. I garden about 3 acres and it doesn't bother me if things spread out;-)
Here is a little info, I'm just saying that it works great for me. Hope this helps.
Organic insecticide
Tansy can be used as in companion planting, and for biological pest control in organic gardens and sustainable agriculture. It is planted alongside potatoes to repel the Colorado potato beetle, with one study finding tansy reduced the beetle population by 60 to 100%.[5][14][15]
In England tansy is placed on window sills to repel flies; sprigs are placed in bed linen to drive away pests, and it has been used as an ant repellent.[16]
In the 1940s, distilled tansy oil mixed with fleabane, pennyroyal and diluted alcohol was a well known mosquito repellent; collectors were paid five cents a pound for tansy in full bloom.[5][17] Research has found that tansy extracts do indeed repel mosquitoes, but not as effectively as chemical pesticide products containing diethyltoluamide [5][18](i.e. DEET.) In 2008, researchers in Sweden investigated the use of tansy to repel ticks, showing a 6472% repellency for each oil constituent.[19]
Toxicity
Tansy contains a volatile oil which can cause contact dermatitis in sensitive individuals. If taken internally, toxic metabolites are produced as the oil is broken down in the liver and digestive tract. It is highly toxic to internal parasites, and for centuries tansy tea has been prescribed by herbalists to expel worms. Tansy is an effective insecticide, and is highly toxic to arthropods.[20] Because it contains thujone, the U.S. FDA limits the use of tansy to alcoholic beverages, and the final product must be thujone-free