How do I create dynamic routes where the changing part is at the beginning of the path?
In your edit, {con} is a route parameter? This is not possible in Drupal, you can't start with a route parameter and /{con}/ has to fill an entire route segment.
Before you can match a route for such a path you have to do some path processing. See Do new routes require a static first portion?