check that pattern is compilable