Removing all disabled actions from all macros

Would it be safe to use BBEdit to remove all instances of the following regex from my Keyboard Maestro Macros.plist file? My intent is to delete actions that are disabled, which have become numerous because of my bad habits.

<dict>[\n\t]*<key>ActionUID</key>[\n\t]*<integer>\d+</integer>[\n\t]*<key>IsActive</key>[\n\t]*<false/>[\s\S]*?</dict>

Of course I would make a copy of the original file first, but I haven't gone through with trying this yet, in case there is some unforeseen reason why it would disallow me from restoring things if something goes wrong.

Is there a better alternative?

Your question was discussed previously here

And you could possibly extend it as an answer to your situation.

I've read that, but there are problems, and I don't want to take the AppleScript route. Also, that was designed for the current macro, not all macros.