Routing: variables and regex/random characters, match on post ID

Hi there,

is it possible to do the routing to single posts only by matching on the post ID?

I currently have it like this:

collections:
  /:
    permalink: /{primary_author}/{slug}/{id}/
    template: index
    filter: 'featured:true'
    posts_per_page: 25

Now, is it possible to have a regex or something else denoting random characters such as permalink: /{random whatever...}/{id}/?