Hello @Eli,
welcome to this moderated Azure community forum.
Both the primary and secondary keys are valid until you regenerate the individual key:
These keys you see are not active anymore! I already regenerated the keys.
Using these key is great for securing your service but you have no control over these keys once given away.
Therefor we role the keys once in a while.
If you need the key access just for connecting Azure services within azure, check out if the use of the system assigned managed identity is possible:
This is the now preferred way to secure your services because you do not see any key, only specific role assignments.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.