如何在regex .match()断言中插入变量?

Jak*_*Sip 5 regex automated-tests web-testing e2e-testing testcafe

我想在正则表达式断言中添加一个变量“ example”。

const example = Selector('xyz');

await t.expect(getLocation()).match(/^https:\/\/int-.*.example.com\/en\/example\/-\/  ** HERE SHOULD BE INSERTED A VARIABLE, 'example' ** \/$/)
Run Code Online (Sandbox Code Playgroud)

我该怎么办?