If you are locked out of a modern Nokia phone, you must use different methods:
It may not work on later BB5 (Baseband 5) phones, which often require hardware-based tools like JAF or Cyclone Box. Modern Alternatives for Nokia Security Issues
The Nokia Security Code Removal Tool v1.8.4 is only recommended for very old, keypad-based Nokia feature phones. For any smartphone built within the last 10-15 years, this tool will not work.
Provides a specialized code to unlock the keypad without wiping user data.