Hi @smutel Unfortunately it is not immediately clear (at least to me) where this error message came from just the Terraform CLI user interface output. If you enable logging with Terraform CLI, such as running TF_LOG=TRACE terraform apply, you may get some additional clues about when the error was generated which might help track down what generated it.
If you are using github.com/hashicorp/terraform-plugin-sdk, one of the underlying dependencies is github.com/mitchellh/mapstructure, which can potentially generate a message like this. If that is the case, then it could potentially occur if the resource state data was written with a different type then the resource schema was changed to a string. In that case, the provider should implement a state upgrade to translate the data from the old type to the new type.