I think it’s very much depending on the safety mat.
Unfortunately I don’t have knowledge about safety mats but the easiest would be if it behaves like an emergency stop: open the short circuit as soon as someone steps on it.
Then you would be able to connect it like an emergency stop (if its electrical specifications match).