The function I posed seems to be able to handle your url string.
// https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
// let upload_URL = pm.response.headers.get('location');
let url = "https://qa2.testingstore.com/api/v2.0/upload/process?key=local-804ef6daf465482188c3a5951963cc36&name=QA2_2022-12-22_15-19_Testing-API_V2.png&expires=2022-12-22T14%3a29%3a46.7116531%2b00%3a00&signature=1aE9hgpcCsM";
function getParameterByName(name, url = window.location.href) {
name = name.replace(/[\[\]]/g, '\\$&');
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, ' '));
}
console.log(getParameterByName("key", url)); // local-804ef6daf465482188c3a5951963cc36
console.log(getParameterByName("name", url)); // QA2_2022-12-22_15-19_Testing-API_V2.png
console.log(getParameterByName("expires", url)); // 2022-12-22T14%3a29%3a46.7116531%2b00%3a00
console.log(getParameterByName("signature", url)); // 1aE9hgpcCsM