King James Version (KJV)
The LORD hath mingled a perverse spirit in the midst thereof: and they have caused Egypt to err in every work thereof, as a drunken {man} staggereth in his vomit. {a perverse...: Heb. a spirit of perversities}
Modern English
Yahweh has mixed a spirit of perverseness in the middle of her; and they have caused Egypt to go astray in all of its works, like a drunken man staggers in his vomit.
Hebrew
יְהוָ֛ה מָסַ֥ךְ בְּקִרְבָּ֖הּ ר֣וּחַ עִוְעִ֑ים וְהִתְע֤וּ אֶת־מִצְרַ֙יִם֙ בְּכָֽל־מַעֲשֵׂ֔הוּ כְּהִתָּע֥וֹת שִׁכּ֖וֹר בְּקִיאֽוֹ׃
yhvah masak bqirbah rvḥa ʿivʿiym vhitʿv ʾet-miṣrayim bkal-maʿashehv khitaʿvot shikvor bqiyʾvo