How to automate Caps Lock Delay Removal in macOS MacBook Pro?
I don't have a script but I just fixed this a few minutes ago on my Macbook Pro. Here are the steps I took: 

Go to System Preferences > Accessibility > scroll down to keyboard > look for checkbox Enable Slow Keys (If it is not ticked go ahead and tick it) > Go to Options... directly across from it. 

Then move the Acceptance Delay all the way to Short. 

Hit OK and you're done. No more CAPS LOCK delay.

*Edit: Another post mentioned that this will make your Backspace take a little longer than usual to delete individual characters when holding the button down.