`RoutesInspector` deals with routes using regexp as `:controller` option

Fixes #10782.

Simple patch to make the `RoutesInspector` cope with regexp values for the `:controller` option.