cannot substitute the key path with variable inside the lookup module

I don't think you need the string concatenation - in Brian's example he is building a string - you are just using a variable alone?

Have you tried
key_material: "{{ lookup('file', ssh_key_location) }}"

Hi George, Yes I did that and it’s work for me, Thanks