This article explains how to remove write protection from a file, USB device, or SD card. Disabling write protection allows you to make changes (i.e. write) to files instead of just viewing them (i.e. read).
How to Remove Write Protection from USB Drive: Step-by-Step Guide for Windows 11 #ITNEXT
Removing write protection involves erasing the read-only attribute, and it is entirely possible to do this for files, folders, and entire storage devices. How this is done varies depending on what you are dealing with, as there are both hardware and software write protection techniques.
The clearest way to confirm that a file is write-protected and that there is no unrelated problem is to check if you get a read-only error when you try to overwrite the file.
If an entire disk is write-protected, you'll see The media is write-protected when you try to make changes using the Command Prompt. File Explorer will display this: