const rawRecords = `[{"1":"1","2":"}2"}, {"2":"2","3":"3"},{"4`.matchAll(/{(?<record>(".*?"):(".*?"),?)}/g);
for (const rawRecord of rawRecords) {
console.log(rawRecord.groups.record)
}
// "1":"1","2":"
// "2":"2","3":"3"
[{"1":"1","2":"}2"}, {"2":"2","3":"3"},{
{"1":"1","2":"}2"}