This seems to be fine. You might need to add the sitemap.xml URL in your robots.txt file for Google to Crawl.
Review this reference URL and it will give you better clarity.
https://yoast.com/wordpress-robots-txt-example/
https://www.wpbeginner.com/wp-tutorials/how-to-optimize-your-wordpress-robots-txt-for-seo/
Thanks,
Kartik
Just get your robots.txt checked via Google Search Console.
Log into Google Search Console, go the old version of the tool and under Crawl → Fetch as Google, use the Fetch and Render option:Fetch as Google in Google Search console, test your WordPress robots.txt
If it doesn’t look the same as when viewing your site in a browser, or it throws errors or notices, fix them by removing the lines in your robots.txt file that block access to the URLs identified in the notices.
Thanks.
]]>Feel free to ask if you have further questions or you can mark this thread as closed/resolved.
Thanks,
Kartik