### Elasticsearch Version

8.4.1

### Installed Plugins

_No response_

### Java Version

_bundled_

### OS Version

Any

### Problem Description

Data streams can be individually targeted by update by query but wildcards don't seem to work.

ie: `/my-data-stream-*/_update_by_query` doesn't work while `/my-data-stream-1,my-data-stream-2/_update_by_query` does.

### Steps to Reproduce

Following the [basic setup for datastreams](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html):

```

PUT /my-data-stream-1/_bulk
{ "create":{ } }
{ "@timestamp": "2099-05-06T16:21:15.000Z", "message": "192.0.2.42 - - [06/May/2099:16:21:15 +0000] \"GET /images/bg.jpg HTTP/1.0\" 200 24736" }
{ "create":{ } }
{ "@timestamp": "2099-05-06T16:25:42.000Z", "message": "192.0.2.255 - - [06/May/2099:16:25:42 +0000] \"GET /favicon.ico HTTP/1.0\" 200 3638" }

PUT /my-data-stream-2/_bulk
{ "create":{ } }
{ "@timestamp": "2199-05-06T16:21:15.000Z", "message": "192.0.2.42 - - [06/May/2199:16:21:15 +0000] \"GET /images/bg.jpg HTTP/1.0\" 200 24736" }
{ "create":{ } }
{ "@timestamp": "2199-05-06T16:25:42.000Z", "message": "192.0.2.255 - - [06/May/2199:16:25:42 +0000] \"GET /favicon.ico HTTP/1.0\" 200 3638" }

POST /my-data-stream-*/_update_by_query
{
  "query": {
    "term": {
      "@timestamp": {
        "value": "2099-05-06T16:21:15.000Z"
      }
    }
  }
}
```
Total number of documents is 0.

```
POST /my-data-stream-1,my-data-stream-2/_update_by_query
{
  "query": {
    "term": {
      "@timestamp": {
        "value": "2099-05-06T16:21:15.000Z"
      }
    }
  }
}
```
Total number of documents is now 1.

### Logs (if relevant)

_No response_
server/src/main/java/org/elasticsearch/index/reindex/UpdateByQueryRequest.java
implements
        IndicesRequest.Replaceable,
        ToXContentObject {
    /**
     * Ingest pipeline to set on index requests made by this action.
     */
    private String pipeline;
    public UpdateByQueryRequest() {
        this(new SearchRequest());
    }
    public UpdateByQueryRequest(String... indices) {
        this(new SearchRequest(indices));
    }