How to pin elasticsearch version using “ec” Terraform provider?

Hello Everyone, how to pin elasticsearch version using “ec” Terraform provider? I am using the following

data "ec_stack" "latest" {
version_regex = "8.2.1"
region = var.region
}

but it throws “Error: failed to obtain a stack version matching “8.2.1": please specify a valid version_regex” error. How to solve this issue?