exclude one specific url from Varnish Cache setting

Solution 1:

if ( req.url ~ "^/a/?($|\?)" ) {
  return (pass);
}

Will match, e.g./a and /a/, and /a?something=.... Check here.