title: React Router V6 - useRoutes() Path Regex
body: <p>I know react-router-dom v6 is in beta but I'm playing with it and have a couple of questions about useRoutes() &amp; path &amp; regex.</p>
  <p>BTW - v6 looks great!!</p>
  <p>Before in v4 I would do the following. It would only match if the path was /profile/&lt;10 digit number&gt;.... (no is profile_id). Is there a way to regex url's like this in v6?</p>
  <pre><code>&lt;Route path=&quot;/profile/:userid([0-9]{10})&quot; component={Profile} /&gt;
  </code></pre>
  <p>Also in V4 I was able to limit the Param options after the param in brackets - ':type(email|forgot)'. Is there way to do this in v6?</p>
  <pre><code>&lt;Route exact path=&quot;/login/:type(email|forgot)&quot; component={Login} /&gt;
  </code></pre>
  <p>My attempts below where not successful.</p>
  <pre><code>{ path: '/profile/:userid([0-9]{10})', element: &lt;Profile /&gt; }
  
  { path: '/login/:type(email|forgot)', element: &lt;Login /&gt; }
  </code></pre>
  <p>I know with the second one (email|forgot) I can use 'children' and this is fine. I just wanted to ask.</p>
  <p>Its the profile_id 10 digit regex that would be great. Would rather not route to the component if that condition isn't met.</p>
  <p>any info would be good.
  thankyou very much!!</p>