Zohar Ki Tetze
Zohar title: And the impure spirit I will remove from the land
The foreign (from the other/negative-side) maidservants are the aspect of elixir of death and opposite the Shechina. They are the females of the minister of the other-side, Sama-el (We do not speak this name because it would be like calling for his presence).
“תַּחַת שְׂנוּאָה, כִּי תִבָּעֵל; וְשִׁפְחָה, כִּי תִירַשׁ גְּבִרְתָּהּ”
“an unloved woman when she gets a husband, and a maidservant when she displaces her mistress.”
This verse explains the aspect of the other-side that takes control when the Shechina is not present. Sama-el and his female part were servant of God but they made divine of themselves. At the end of the Tikun, God will remove them from existence.
If we say that people, made them divine then why they are to be punished. The generation of the Flood worshiped them and served them with offerings. They went down and fulfilled the people’s wishes. They formed different idols and established negative spiritual entities and connections. Because of that they will be removed in the future from existence.