Parentheses cannot be used with Rails routing/journey

Hey all,

It seems that there is no real way to use parentheses in Rails’ routing. As far as I can tell, they can’t be escaped to take away their “optional” meaning. The grammar that Journey uses treat parentheses as reserved characters, always.

This is an issue as it makes protocols like OData virtually impossible to implement while leveraging the journey router.

How can we start moving to fix this for Rails?

I think that Rails should stop using parentheses to denote optional parts of the path and instead use square brackets or something that is actually invalid in RFC3986 for a URI path.

I have opened an issue in GH as well: