I don't think you can match the args by regex, try this instead
location /api/v0/roslyn { resolver 8.8.8.8; proxy_pass $scheme://my-windows-box.com/roslyn$is_args$query_string;}