[PATCH21.4] fix bug in parsing ^ after shy group in regex