This worked great on Catalina 10.15.7. Thanks a lot!
For the reverse that Panosru is looking for I believe that the correct syntax within ~/Library/KeyBindings/DefaultKeyBinding.dict should be:
{ "#." = ("insertText:", ","); } As the comma after "insertText" is a separator between the command and the wanted character.