Fixed a bug in regex regex parsing