Hi @Asuri Spandana,
As far as I know, SharePoint online modern page will not support content editor webpart. As a workaround, I would recommend you to use spfx to custom web part. You could refer to the following steps to create the solution
Here is the sample for more function
https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-adaptivecards
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.