I have a novel that is very similar to this plot. It's called 'Gentle Prison'. In this story, the female protagonist, Yu Yueshuang, transmigrated into a Mary Sue novel and became the female villain. She imprisoned the male director, Nan Qing, but Ren Nan Qing kept resisting. Yu Yueshuang forced him more and more. Later, he turned the tables and threw Yu Yueshuang overseas to suffer. But in the end, Yu Yueshuang chose to let go and let the male protagonist go, but only if he was by her side. Ren Nanqing was skeptical at first, but he slowly realized that Yu Yueshuang doted on him to the heavens. It felt pretty good. This book was completely in line with the plot of the male protagonist locking himself in bed by hook or by crook in order to get the female protagonist. Moreover, it was the type of book about a wealthy family. He might as well read it and see if he liked it. I hope you like my recommendation.