For the reverse that Panosru is looking for I believe that the correct syntax within ~/Library/KeyBindings/DefaultKeyBinding.dict should be:
{ "#.," = ("insertText:", "."); "#." = ("insertText:", ","); } As the comma after "insertText" is a separator between the command and the wanted character. This effectively reverts the original behaviour of the key in the numpad.
(Tested and working on macOS 15)