If the string is an f-string, it is immediately evaluated and you no longer have access to the interpolation info for a resolver.
If the string is not an f-string, you get no help from Python tooling.
In both cases, you have to use frame hacks to get back to the scope, which has negative consequences.