Fix regex for []