Not exact, but the term '[gaslight][1]''gaslight' sort of fits.
manipulate (someone) by psychological means into questioning their own sanity
Although this does not specifically apply to twisting someone's words, the effect is similar. [1]: https://www.britannica.com/topic/gaslighting