it takes string, that will be used as part regex and escapes special characters in it ( [, ], (, ), |)