let t = `<?if($USERNAME$='artemchalysh')?>26.09.2021<?endif?>
<?if($USERNAME$='mponomarenko821')?>17.09.2021<?endif?>
<?if($USERNAME$='yeqingwen082')?>14.09.2021<?endif?>
<?if($USERNAME$='разДва34234kjs你好')?>13.09.2021<?endif?>`
let result = t.replace(/^.*\$USERNAME\$='(.+?)'.+?>(.+?)<.*/mg, '{ "name": "$1", "date": "$2" }')
.split(/\r?\n/)
.map(JSON.parse)
console.log(result)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
nvm install node
/(....)/g