### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

DynamoDB does not correctly namespace resources based on region and account ID. 

For instance, using the same table name across accounts and regions throws an error.

### Expected Behavior

It must be possible to create resources with same name on different regions and/or different accounts.

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

#### Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

```
  $ AWS_ACCESS_KEY_ID=445500880268 AWS_DEFAULT_REGION=eu-central-1 \
    awslocal dynamodb create-table --table-name CertificateTargets-local1 \
        --key-schema AttributeName=target_uuid,KeyType=HASH \
        --attribute-definitions AttributeName=target_uuid,AttributeType=S \
        --provisioned-throughput ReadCapacityUnits=1000,WriteCapacityUnits=1000

  $ AWS_ACCESS_KEY_ID=445500880268 AWS_DEFAULT_REGION=us-east-1 \
    awslocal dynamodb create-table --table-name CertificateTargets-local1 \
        --key-schema AttributeName=target_uuid,KeyType=HASH \
        --attribute-definitions AttributeName=target_uuid,AttributeType=S \
        --provisioned-throughput ReadCapacityUnits=1000,WriteCapacityUnits=1000

    # ResourceInUseException!

  $ AWS_ACCESS_KEY_ID=000000000000 \
    awslocal dynamodb create-table --table-name CertificateTargets-local1 \
        --key-schema AttributeName=target_uuid,KeyType=HASH \
        --attribute-definitions AttributeName=target_uuid,AttributeType=S \
        --provisioned-throughput ReadCapacityUnits=1000,WriteCapacityUnits=1000

    # ResourceInUseException!
```

### Environment

```markdown
OS: Ubuntu 22.04
LocalStack: latest
```


### Anything else?

_No response_
"""
    Get an OpenSearch cluster endpoint by describing the cluster associated with the domain_arn
    :param domain_arn: ARN of the cluster.
    :returns: cluster endpoint
    :raises: ValueError if the domain_arn is malformed
    """
    region_name = extract_region_from_arn(domain_arn)
    if region_name is None:
        raise ValueError("unable to parse region from opensearch domain ARN")
    opensearch_client = connect_to_service(service_name="opensearch", region_name=region_name)
    domain_name = domain_arn.rpartition("/")[2]
    info = opensearch_client.describe_domain(DomainName=domain_name)
    base_domain = info["DomainStatus"]["Endpoint"]
    endpoint = base_domain if base_domain.startswith("http") else f"https://{base_domain}"
    return endpoint
def get_search_db_connection(endpoint: str, region_name: str):
    """
    Get a connection to an ElasticSearch or OpenSearch DB
    :param endpoint: cluster endpoint
    :param region_name: cluster region e.g. us-east-1
    """
    from opensearchpy import OpenSearch, RequestsHttpConnection
    from requests_aws4auth import AWS4Auth
    verify_certs = False
    use_ssl = False
    
    if "https://" in endpoint:
        use_ssl = True