Preferably, you use a Pin Extraction Tool.
the tool is hollow in the center, and it slips over the terminal and will depress the Spring Lock.
If you are very careful, you can use a super tiny flat screwdriver blade to push in from the terminal side to depress the Spring Lock and let it slip back out.
While you are doing that, you push in on the Wire to make the terminal go forward as far as possible, to allow the screwdriver room to get in and depress the Spring Lock.
Buy BingSnow 26Pcs Terminals Removal Tools for Car Auto Electrical Wiring Crimp Connector Pin Extractor Puller Repair Remover Key Tools Set for Most Connector Terminal: Electrical System Tools - Amazon.com ✓ FREE DELIVERY possible on eligible purchases