The Hebrews of that time, or even in the New Testament era would’ve had no knowledge of the Ancient Druids and Celts, which is where our modern idea of witchraft originated, so clearly, the biblical verses could not be refferring to them. Likewise, it obviously was not meant to refer to someone who caimed to have the power of prophecy, since most true prophets were revered throughout the Bible. And false prophets are not reffered to as witches anywhere in scripture.
Going on historical evidence, the scriptures aimed at ‘witches’ were obviously directed towards unauthorized practicioners of the Kaballah, especially the darker aspects of it. The Kaballah was greatly feared by the Jewish authorities, and the Sanhedrin, especially, strictly limited it’s use, and the teaching of it, only to authorized scholars and rabbis. In fact, at one point in their history, the practice of any part of the Kaballah was totally banned, with very strict penalties for those who tried. Even today, the Kabbalah is not very well understood outside of it’s practicioners. So, it would make perfect sense that scripture would condemn unauthorized practicioners as a danger to the public good.
The condemnation also undoubtably extended to pagan practioners of Black Magic, human sacrifice, curses, and the like, again, in the interests of the public good. Also included were probably Zoroastrianism, and similar beliefs.
This is just my opinion, after exhaustive research. As I said, to me at least, it makes perfect sense. Much more than simply a blanket definition.
Deus vobiscum