Con el key deberías poder acceder al valor de shared sin problema
val sharedPrefs = PreferenceManager.getDefaultSharedPreferences(requireContext())
sharedPrefs.getString(p1, "")
val sharedPrefs = PreferenceManager.getDefaultSharedPreferences(requireContext())
sharedPrefs.getString(p1, "")