Sunscreen helps limit new sun damage, but it does not remove existing dark spots.
Sunscreen provides daily protection against UV exposure that can intensify visible pigmentation. It is not designed to remove pigmentation that is already visible.
You can use sunscreen every day and still see existing dark spots. That does not mean the SPF is not working; it means protection is only one part of the routine.