I think your best bet would be to use regular expressions.
You could do something like this:
(Note, you would need to grab the value from your response)
let idVal = '"id": "caa6df98-e398-4862-bcb6-A558c8f1c30",';
let formatMatch = new RegExp(/[A-Za-z0-9]{8}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{12}/).exec(idVal)
pm.test("Validate id value", function () {
//Check the RegEx matches to the value
pm.expect(formatMatch, "Format does not match regular expression.").to.not.eql(null);
console.log("formatMatch = " + formatMatch);
});
Passing output:
Failing output on the format (1 character missing)
Info about the RegEx;
[A-Za-z0-9] = Match any alphanumeric characters
{8} = Length is equal to 8 characters
Each match is separated by the expected hyphen

