JS already has an HTML parser, why not use it?
const html = `
<span style="font-size:25px;border-radius: 10px;">John Doe</span>
`;
const parser = new DOMParser();
const doc = parser.parseFromString(html, "text/html");
console.log(doc.querySelector("span").textContent);
// or attach to another element
const root = document.createElement("div");
root.innerHTML = html;
console.log(root.querySelector("span").textContent);
If you're in Node, you can use JSDom or Cheerio to achieve the same thing.
const cheerio = require("cheerio");
const html = `
<span style="font-size:25px;border-radius: 10px;">John Doe</span>
`;
const $ = cheerio.load(html);
console.log($("span").text());
Regardless, please don't use regex to parse HTML.
test1 = response.body.trim()