How to regex replace a query string with matching 2 words?

I have a url and I want to replace the query string. For example

I want to match the wid= and hei= and the numbers don’t have to be 200 to replace the whole thing so it should look like this.

Expected[email protected]_dtImage

So I’ve tried doing but it only replaced the matching wei and hei.

const url = ""

url.replace(/(wid)(hei)_[^&]+/, "@HT_dtImage")