The way I just resolved this myself was by using Javascript based variables.
In my serverless config I have the following vpc: securityGroupIds: ${file(config/${opt:region,self:provider.region}/vpc.js):security} subnetIds: ${file(config/${opt:region,self:provider.region}/vpc.js):subnets}
I then created a file (vpc.js) within the folders config/(us-east-1/eu-central-1/etc.)
The js file contents look like this: