Just do this and your back button event work properly
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
return object : Dialog(requireActivity(),R.style.BottomSheetDialogTheme){
override fun onBackPressed() {
backConfirmationPopup()
}
}
}