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