Get the list of keys used in a string with interpolation