Thank you both. I have something workable, so not the biggest issue.
If anyone else comes across this, don’t forget to switch back to Number after getting the pattern matching right. And consider using a test item name, especially if you want to persist the item.