quotemeta the user input.

13:06:27 ik notori0us: hey you should quotemeta your $word before you
use it in a regex like that