It's no mistake or coincidence that the source definition of the words witchcraft & sorcery in greek is pharmakeia https://biblehub.com/greek/5331.htm ◄ 5331. pharmakeia
Strong's Concordance
pharmakeia: the use of medicine, drugs or spells
Original Word: φαρμακεία, ας, ἡ
Part of Speech: Noun, Feminine
Transliteration: pharmakeia
Phonetic Spelling: (far-mak-i'-ah)
Definition: the use of medicine, drugs or spells
Usage: magic, sorcery, enchantment.
HELPS Word-studies
5331 pharmakeía (from pharmakeuō, "administer drugs") – properly, drug-related sorcery, like the practice of magical-arts, etc. (A. T. Robertson).
Englishman's Concordance
Galatians 5:20 N-NFS
GRK: εἰδωλολατρία φαρμακεία ἔχθραι ἔρις
NAS: idolatry, sorcery, enmities, strife,
KJV: Idolatry, witchcraft, hatred,
INT: idolatry sorcery enmities strife
Revelation 18:23 N-DFS
GRK: ἐν τῇ φαρμακείᾳ σου ἐπλανήθησαν
NAS: were deceived by your sorcery.
KJV: by thy sorceries were all
INT: by the sorcery of you were misled