Serverless Deploy validation error

Hi All,

I am trying to deploy a function inside a vpc using the serverless deploy command.
But while deploying I am getting the below serverless error.

Serverless Error ---------------------------------------

** An error occurred: CreateUnderscoreordersDashsqsLambdaFunction - Resource handler returned message: “1 validation error detected: Value ‘[subnet-xxx,subnet-yyy,subnet-zzz]’ at ‘vpcConfig.subnetIds’ failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 1024, Member must have length greater than or equal to 0, Member must satisfy regular expression pattern: ^subnet-[0-9a-z]*$] (Service: Lambda, Status Code: 400, Request ID: e2476da3-xxx-0081ccf32b30)” (RequestToken: ce713c0e-xxx-b56910bf568c, HandlerErrorCode: InvalidRequest).**

I am not able to find any examples/blogs that match my criteria. Any guidance/samples would be highly appreciated.

Can you post your code snippet, which would provide some context?

How are you providing your subnet IDS? As variables? As a Cloudformation Reference?
This 2 year old Issue seems related