I was searching around on how to no index specific URLs but I havent found any specific info on the following.
By adding the below
You can add this rule in a robots.txt file:
Disallow: www.test.com/REF-123*