This was working fine till we also wanted Prefix 10. Because with this it will use Prefix 1 and an additional 0 is being used when the numbers is dialed.
But Prefix 10 is wanted
Again, it’s ambiguous because “1X.” matches"10" and any number after that.
So, you should find or define a difference between them, or use another prefix. Instead of 1, you can use 01, 02… and that will make a difference. Or use the number length as the difference.