Just reposting the comment from Maurits Elzinga here to mark the question as answered
Yes, your error message isn't tied to the behavior itself. You can set up the delete behavior in the Domain model, and on the button where you want to delete, have the event be to call a microflow. in that microflow's Confirmation settings you can set your custom message.