I would do some research on this. From what I understand, ivermectin comes from a micro-organism found in soil and wormwood (artimisia) is a plant. Both are anti parasitic but I do not believe they are the same thing.
Here is a link to an article about Ivermecting and also provides other natural alternatives, wormwood being one of them:
https://suzycohen.com/articles/ivermectin-and-natural-alternatives/
Ivermectin and Natural Alternatives - Suzy Cohen, RPh offers natural remedies to help you feel better now!
Ivermectin was first discovered in Japan, at The Kitasato Institute which is a private medical research complex established way back in 1914. Ivermectin came
https://suzycohen.com/articles/ivermectin-and-natural-alternatives/Perhaps the Sweet Wormwood uptakes the soil bacteria, and converts it to some other substance, that is in the leaves. Which, in turn, provides healing benefits. God's Grace, many Prayers, and Ivermection saved my life from the brink of death from Covid-19/Pneumonia, a bit over 2 years ago!!