Hi Hugo,
This is definitely possible in GCP, but it’s much easier in Stape
In GCP you will need to access the app engine → settings → custom domains. In there you can add your subdomain and GCP will provide you with a list of A and AAAA records that needs to be created on your subdomain. You will also need to verify your subdomain using either Google Webmaster or Google Search Console.
In sGTM you will need to configure your tagging server to point to your new URL and in cGTM you will need to update your tags to send data to your new URL.
In general this process is surprisingly complicated considering all platforms are Google platforms. With Stape this process is automated, and you basically only need to add one record and you are good to go
Best,
Jonas