Using parentheses in routes

Does anyone know how to use escape parentheses in routes so I can use them in URLs? They currently denote optional params, but I can’t find documentation on how to escape that.

What I want is:

Given I have a route: match “foo(:id)” => “foos#show”
When I go to “/foo(3)”

Then params[:id] should be “3”

But currently params[:id] returns “(3)”

I don’t want to make :id optional.

Thanks!

Rick