When choosing the very same heading that is going to be refiled as its target the message buffer states success but the heading is gone. This is version 9.5.5 of org-mode with emacs 28.2

-*- mode: org -*-
* one
* two
* three

Try refiling two and choose two as the target. Result when started with emacs -Q is:

* one
* three

no error message.

greetings
Oliver Epper