robots.txt: Google Search Console and Sitemap settings for a website subfolder

You may have a different XML sitemap configured for your folder and it will not confuse search engines. Source.

Just keep in mind that they are correctly linked from the main site map.

But when it comes to GSC or Analytics, it is not possible to implement it in folders.