Could this be more simple: instead of regex, split and iteration over the array with validation of every item to be valid JSON, just `JSON.parse(keys)` - if `keys` is a valid JSON array, all elements inside are also have valid JSON format.