Yes, you can use your license on test or staging sites – they do not count against the license limit.
TLDs that are considered as dev or staging:
*.dev*.dev.cc(DesktopServer)*.test*.local*.staging*.example*.invalid*.myftpupload.com(GoDaddy)*.cloudwaysapps.com(Cloudways)*.wpsandbox.pro(WPSandbox)*.ngrok.io(tunneling)*.mystagingwebsite.com(Pressable)*.tempurl.host(WPMU DEV)*.wpmudev.host(WPMU DEV)*.websitepro-staging.com(Vendasta)*.websitepro.hosting(Vendasta)*.instawp.xyz(InstaWP)
Subdomains that are considered as dev or staging:
local.*dev.*test.*stage.*staging.*stagingN.*(SiteGround;Nis an unsigned int)*.wpengine.com(WP Engine)dev-*.pantheonsite.io(Pantheon)test-*.pantheonsite.io(Pantheon)staging-*.kinsta.com(Kinsta)staging-*.kinsta.cloud(Kinsta)
Additionally, if your domain is localhost (with any port), it will also be treated as a localhost domain.
You can check out more details here:
freemius.com/help/documentation/selling-with-freemius/license-utilization/
