This can be done by redefining the Endnote Formatting style applied:
...and using an embedded style to set the number format. Much better than applying it as an overrride afterwards. You'll still need a working GREP string but it should be more reliable there.
| Word & InDesign to Kindle & EPUB: a Pro Guide (Amazon)