I had a similar issue where there seems to be a total lack of documentation on the internet, eventually I figured out the syntax is like this:
ratbagctl hooting-chinchilla button 6 action set macro +KEY_LEFTALT KEY_ENTER -KEY_LEFTALT
Where hooting-chinchilla is my mouse device name from...