Update:
After go through your screenshot, this should be a release pipeline. (Classic UI). But what you are using for test seems to be a yaml pipeline. It's not able to access release variable from a yaml pipeline directly. You should be able to use the variable in tasks of that release pipeline.
Also take a look at this similar question. How to get the variable value in TFS/AzureDevOps from Build to Release Pipeline?
If you are not familiar with variables in Azure DevOps. Suggest you first go through our official doc-- Define variables It describe how to define/set variable, the difference of system variable, system variable, environment, variable scope, secret variable.
Besides, you could also take a look at this blog-- How to pass variables in Azure Pipelines YAML tasks which include three part:
- Passing variables between tasks in the same job
- Passing variables between jobs
- Passing variables between stages