Custom template variable (key/Value) is not working properly if any two key have same values

What happened :
Key with same values are disabled in the drop down menu for custom template variable (key/Value)

What you expected to happen : Key with same values should not be disabled in the drop down menu PFA snaps

How to reproduce it (as minimally and precisely as possible) : Try to create custom variable (key : value) with different key names but same valueAnimation
PS : I need a workaround for this until my open issue is fixed (Custom template variable (key/Value) is not working properly if any two key have same values · Issue #40414 · grafana/grafana · GitHub)

fixed in 8.2.2: