title: lodash toPath function not generating the desired path for me
body: <p>Certain strings are getting parsed by the lodash <code>toPath</code> function, and getting split where I don't want them to get split.</p>
  <p>Here is an example:</p>
  <pre><code>const crazyString = &quot;['[][][[[{{&amp;&amp;&amp;\&quot;']\&quot;['[']&quot;;
  const pathArr = toPath(crazyString);
  console.log(pathArr) // [ '[][][[[{{&amp;&amp;&amp;&quot;', '&quot;', '[' ];
  
  // My desired output: [ '[][][[[{{&amp;&amp;&amp;\&quot;']\&quot;['[']' ];
  </code></pre>
  <p>I've tried using escape characters but have not had success getting my desired output.</p>
  <p>I don't want this string to be split up at all, I want it to be parsed as just a string, but <code>toPath</code> thinks it's an actual path. Is there some way that I can use escape characters or something to get the behavior I want?</p>
  <p>Also to note, I cannot use another functions besides <code>toPath</code>. I'm not using lodash or <code>toPath</code> directly, but rather the Formik library uses it inside of it's own <code>setFieldValue</code> function. I can't avoid it at the moment :)</p>