Fixed array parsing when string contains []

When a random string contains [ and ], the regex took it as a string and
converted it into array