I don't think RegEx variables in debug function are working.