Make regex critic compliant