Use 'union' instead of 'compile' to prevent breaking regexp when keyword including the '|'