I think the path you entered may be incorrect. It might be something like “/Applications/KexEdit.app”.
I believe you should be able to write xattr -d com.apple.quarantine and then drag and drop the file from the finder into the terminal to automatically write the correct path
Thanks! I should have come back to post that I got it working with the help of ChatGPT. I probably butchered the copying and pasting somewhere along the lines and I'm no good with Terminal.