Two listen path to be used

if i have an API v1/{id}/test can i add regex for this directly in listen_path and target url ?
if so if id can be anything how to add regex for this?