Bug report
Current Behavior
Crashes the browser
Expected behavior
To work the same as when using string keys
Reproducible example
<Formik initialValues={{}} onSubmit={(v) => console.log(v)}>
<form>
<Field name="kitIds[45345345][1]" placeholder="gello" />
<Field name="kitIds[45345345][2]" placeholder="gello" />
<Field name="kitIds[two][3]" placeholder="gello" />
<Field name="kitIds[two][4]" placeholder="gello" />
<button type="submit">Submit</button>
</form>
</Formik>
Suggested solution(s)
Should work the same as string keys
Additional context
Adding a letter to the keys solves this bug but not an ideal solution, should work the same as string keys
<Formik initialValues={{}} onSubmit={(v) => console.log(v)}>
<form>
<Field name="kitIds[X45345345][1]" placeholder="gello" />
<Field name="kitIds[X45345345][2]" placeholder="gello" />
<Field name="kitIds[two][3]" placeholder="gello" />
<Field name="kitIds[two][4]" placeholder="gello" />
<button type="submit">Submit</button>
</form>
</Formik>
Your environment
| Software | Version(s) |
| ---------------- | ---------- |
| Formik | 2.2.9
| React | 18.2.0
| TypeScript | 4.7.4
| Browser | Chromium 108.0.5359.99
| npm/Yarn | npm 8.12.1
| Operating System | Ubuntu 22
Type: Bug