Как извлечь динамическую переменную из <> кронштейна в JavaScript

let pattern = "/used-cars/<city_name>/<location>/<car_name>-cars-for-sale"
let matches = pattern.match(/<.+?>/g);
const newArray = matches.map((match) => match.replace(/[<>]/g, ''));
let object = {};
newArray.map((item, index) => {
  object[item] = '';
});
console.log(object)
Frightened Fish