How to write regularization in the parameter part of the path of the route component in react-router

problem description

how does the route component in react-router write rules in path, for example:
my current path is like this
< Route path= "/ user/:id" / > parameter id I only match numbers, how should I write this path?
according to the document, I used this method to match unsuccessfully

clipboard.png

Menu