AWS-S3 plugin ignores endpoint, s3BucketEndpoint and s3ForcePathStyle settings, and enforces using S3 Bucket as subdomain
### Node Version

14.21.3

### NPM/Yarn/PNPM Version

6.14.18

### Strapi Version

4.1.9

### Operating System

Linux (Debian/Ubuntu)

### Database

PostgreSQL

### Javascript or Typescript

Javascript

### Reproduction URL

_No response_

### Bug Description

We are using provider-upload-aws-s3 plugin for a S3 compatible service. Unfortunately, that service doesn't support using the bucket name as a subdomain, it has to be in the path.

We were using plugin version 4.14.6, and had these settings, "endpoint=https://<S3-HOST>/<BUCKET-NAME>" and "s3BucketEndpoint: true" in plugins.js, which was working fine until we recently upgraded to the latest plugin version. It enforces to use bucket name as a subdomain while making s3 api calls.

I tried various settings, "s3BucketEndpoint: true", "s3ForcePathStyle: true", "endpoint", "baseUrl" and "rootPath" to put bucket name back to the path. None of them are working for me. 

Looks like the latest version doesn't recognize "s3BucketEndpoint", "s3ForcePathStyle" and "endpoint" anymore.

### Steps to Reproduce

1. With the latest provide-upload-aws-s3 plugin
2. Apply the following settings in plugins.js
`module.exports = ({ env }) => ({
    upload: {
      config: {
        provider: 'aws-s3',
        providerOptions: {
          credentials: {
            accessKeyId: env('S3_ACCESS_KEY_ID'),
            secretAccessKey: env('S3_ACCESS_SECRET_KEY'),
          },
          region: 'us-east-1',
          endpoint: `https://${env('S3_HOST')}/${env('S3_BUCKETNAME')}`,
          params: {
            Bucket: env('S3_BUCKETNAME'),
          },
          s3BucketEndpoint: true,
          s3ForcePathStyle: true,
        },
        actionOptions: {
          upload: {},
          uploadStream: {},
          delete: {},
        },
      },
    },
  });`
3. Output/log the api call URL to check whether the bucket name is in subdomain or in the path

### Expected Behavior

Assets can be uploaded without any issues

### Logs

```shell
Error: getaddrinfo ENOTFOUND <BUCKET-NAME>.<S3-HOST>
```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).