Fix regex to match sed commands