Disable the blue caps lock indicator in Mac OS Sonoma:
Open terminal, paste the following script, enter your password, then reboot.
sudo mkdir -p /Library/Preferences/FeatureFlags/Domain
sudo /usr/libexec/PlistBuddy -c "Add 'redesigned_text_cursor:Enabled' bool false" /Library/Preferences/FeatureFlags/Domain/UIKit.plist