Fix regex capturing group