You respawn with the health you had before opening the door, so it's not a bug, but I feel like we should just completely heal the player now because of how many people say it's a bug haha
And I think it would indeed be better that way