issue when variable substitution using set command in jinja2 template

I have a YAML file that has default value for two dict defined as follows:

sample:
  high:
    name: high-volume
    alias: hi-vl

hi-vl:
  ab1:    
    add:
      range: 0
      range1: 0
    remove:
      range: -1
      range1: -1
To iterate and get the values from jinja2 template i am using the code below: