the working version:
->getConnection()->fetchAll('SELECT * FROM x WHERE word LIKE "%|'.$keyword.'%"');
it does work but not prepared, SQL injections are possible.
->getConnection()->fetchAll('SELECT * FROM x WHERE word LIKE :keyword', ['keyword' => "%|".$keyword."%"']);
it should work though wont return anything.