Correcting MySQL route to fit the regex pattern