Ensure Keyboard Maestro and Keyboard Maestro Engine are not running.
Restore the ~/Library/Application Support/Keyboard Maestro folder.
Make sure the ownership and permissions are correct.
Then you can launch Keyboard Maestro and it should pick up your macros. Make a change to your macros and quit and relaunch the editor to ensure it can write to your macros.