Yea, you can only do [ quote ], not a specific name. By the way, you can edit comments now, so you can fix your original quote to work :)
if (!$regex(%z,\\$$chan(%x)^)) {
May wanna check tht, but i think it should work lol
You mixed it up, ^ starts it and $ ends it, and you escaped the wrong $