@Amritha2030 Yes, this is a expected behavior now. Microsoft made some improvements to SharePoint pages authoring recently. Check:
So, now it does not create a new paragraph when you click "Enter". To add space between two lines, you have to click "Enter" twice.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs