Hey,
You are better to not touch sap formatter, create your own formatter folder and map your control to this formatter class.
You can take a look at how sap refer to a formatter class and how call this formattar methods inside sapui5 controllers or views and then do the same thing to your formatter.
Regards,
adem