Add error checking for rbreak regex syntax