Issue recreating a deleted api gateway resource

I deleted one of my api from the aws console. When I ran my terraform scripts to recreate it, the terraform will run and it seems like it is trying to create the resource twice. I get the follwoing error:
creating API Gateway Authorizer (test-authorizer): BadRequestException: Authorizer name must be unique. Authorizer test-authorizer already exists in this RestApi.

│ with aws_api_gateway_authorizer.ex_authorizer,
│ on line 197, in resource “aws_api_gateway_authorizer” “ex_authorizer”:
│ 197: resource “aws_api_gateway_authorizer” “experience_authorizer” {

│ Error: creating API Gateway Resource: ConflictException: Another resource with the same parent already has this name: api

│ with module.brs_experience_api.aws_api_gateway_resource.api_resource,
│ on modules/api_gateway/ line 29, in resource “aws_api_gateway_resource” “api_resource”:
│ 29: resource “aws_api_gateway_resource” “api_resource” { I tried refreshing the state, but it won’t change anything. Every time I run a build, it will create a resource but error out because it tries to create it twice for some reason. Any help would be appreciated.