Cloning repo from GitLab using HTTPS

So I’m following the documentation on cloning a private repo. I created the deploy token in the repo I want to use as a package, and in my project one I created CI/CD variables dbt_ENV_SECRET_PACKAGE_USER and dbt_ENV_SECRET_PACKAGE_TOKEN storing username and token. In my packages.yml file I have:

packages:
  - package: calogica/dbt_expectations
    version: 0.10.1
  - git: "https://{{env_var('DBT_ENV_SECRET_PACKAGE_USER')}}:{{env_var('DBT_ENV_SECRET_PACKAGE_TOKEN')}}@git.rest-of-https.git"
    revision: 0.1.0 

When running the job I get the following error:

16:25:33  Encountered an error:
'*****$$$DBT_SECRET_END$$$:$$$DBT_SECRET_START$$$DBT_ENV_SECRET_PACKAGE_TOKEN'
16:25:33  Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/dbt/cli/requires.py", line 90, in wrapper
    result, success = func(*args, **kwargs)
                      ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/cli/requires.py", line 75, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/cli/main.py", line 444, in debug
    results = task.run()
              ^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/task/debug.py", line 142, in run
    load_project_status: SubtaskStatus = self._load_project()
                                         ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/task/debug.py", line 343, in _load_project
    self.project = Project.from_project_root(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/config/project.py", line 733, in from_project_root
    return partial.render(renderer)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/config/project.py", line 320, in render
    rendered = self.get_rendered(renderer)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/config/project.py", line 306, in get_rendered
    rendered_packages = renderer.render_packages(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/config/renderer.py", line 143, in render_packages
    return package_renderer.render_data(packages)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/config/renderer.py", line 50, in render_data
    return deep_map_render(self.render_entry, data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/utils.py", line 234, in deep_map_render
    return _deep_map_render(func, value, ())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/utils.py", line 200, in _deep_map_render
    ret = {k: _deep_map_render(func, v, (keypath + (str(k),))) for k, v in value.items()}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/utils.py", line 200, in <dictcomp>
    ret = {k: _deep_map_render(func, v, (keypath + (str(k),))) for k, v in value.items()}
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/utils.py", line 198, in _deep_map_render
    ret = [_deep_map_render(func, v, (keypath + (idx,))) for idx, v in enumerate(value)]
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/utils.py", line 198, in <listcomp>
    ret = [_deep_map_render(func, v, (keypath + (idx,))) for idx, v in enumerate(value)]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/utils.py", line 200, in _deep_map_render
    ret = {k: _deep_map_render(func, v, (keypath + (str(k),))) for k, v in value.items()}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/utils.py", line 200, in <dictcomp>
    ret = {k: _deep_map_render(func, v, (keypath + (str(k),))) for k, v in value.items()}
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/utils.py", line 202, in _deep_map_render
    ret = func(value, keypath)
          ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/config/renderer.py", line 34, in render_entry
    return self.render_value(value, keypath)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/dbt/config/renderer.py", line 213, in render_value
    value = os.environ[found]
            ~~~~~~~~~~^^^^^^^
  File "<frozen os>", line 678, in __getitem__
KeyError: '*****$$$DBT_SECRET_END$$$:$$$DBT_SECRET_START$$$DBT_ENV_SECRET_PACKAGE_TOKEN'

What is wrong exactly? Message doesn’t specify anything