NGINX get filename and remove prefix

location ~ "^/downloads/files/[a-zA-Z0-9]{8}\-(.*\..*)$" {
    add_header Content-disposition 'attachment; filename="$1"';
}