@ Gordo’s answer (in toto)
Slide the read/write lock to the middle neutral position and retry. I have the same problem sometimes...
has been codified and explained. From bartech.tv's 2016 article Read-only SD cards on MacBook Pro? Here’s the solution.
The solution
The solution is, fortunately, very simple. Rather that pushing the write-protect switch all the way to the top, leave it somewhere in the middle. When you next plug the card into your MacBook Pro, you should find that you’re able to write files to, and delete files from, the card as normal.
Why does this work?
It may take a little bit of trial-and-error to get the right position, but in my case it was right around the middle, perhaps a little nearer to the top. Then, I was able to write files, and delete files as normal.
As to why this works, it’s probable that the little lever inside the MacBook Pro’s SD Card slot, which detects the position of the write protect switch, slowly degrades over time, either through continual use or a buildup of dust or fluff inside the card slot. Leaving the switch in the middle, therefore, fools the card reader into believing that it’s at the top.
It's possible/probable that the technique in @CharanBrahamandam's answer (pulling the whole card out slightly) also works because it happens to move the SD card's "switch" in the same direction as sliding the switch only from unlock to half-way in-between.