Serverless.ts deploymentBucket name Error: Could not locate deployment bucket. Error: The specified bucket is not valid

Hi, I haven’t figure out how to set the aws variables on the deploymentBucket name on the serverless.ts, i keep getting:
Error: Could not locate deployment bucket. Error: The specified bucket is not valid.

Here is the name config:
deploymentBucket: {
name: “serverless-deployment-bucket-account-${AWS::AccountId}-${AWS::Region}”
}

Here how we used to do it on yml:
deploymentBucket:
name: serverless-deployment-bucket-account-${aws:accountId}-${aws:region}

Help.