Set response as variable in tests

Is your response a string?
Exactly like the one that you shared?

If yes, you can write something like this:

let s = pm.response.text(),
 id = s.slice(s.indexOf("Id: ") + 4);

pm.environment.set('id', id);

Edit:
Updated the incorrect syntax.

Considering the response is received as shown in screenshot: