IIRC, you can also use xcf constraints to do something like this.
Using wildcards for constraints is one of the most absurd things in FPGA development. It works (probably) and is commonly done, but is terrifying.
You just have no idea if the constraints matched what you wanted. They could match some of the things, or match bonus things. That all said, I also used this method because it is effective.
As a result, I would only look into xcf if you have extra time. Not just because you've solved your problem, but also because xcf doesn't exist in vivado -- there is a good chance you'll never use it again.