Hello @ktipssioyv ,
AFAIK and as mentioned in this doc, the ExpressRoute gateway will advertise the Address Space(s) of the Azure VNet, you can't include/exclude at the subnet level. Also, if VNet Peering is used and the peered VNet has "Use Remote Gateway" enabled, the Address Space of the peered VNet will also be advertised. So as long as the Vnet is linked to the ExpressRoute circuit, there is no way to stop Azure ExpressRoute from learning the Vnet routes from VPN Gateway.
However, if you want your on-prem routes to NOT be advertised to the subnets, you can do so by disabling a property called "Virtual network gateway route propagation" on the route tables of those subnets.
Refer: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview#border-gateway-protocol
https://learn.microsoft.com/en-us/azure/virtual-network/manage-route-table#create-a-route-table
If you want the Azure ExpressRoute to just be a circuit, then I would recommend you to unlink the Vnet from your ExpressRoute by removing the connection.
Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.