**Is your feature request related to a problem? Please describe.**
Configuring a bridge, if you try to rewrite the topic with a wildcard:

```
forwards = [
  {
    remote_topic = "device_id/topic1/#"
    local_topic = "topic1/#"
  },
]
```

It shows:

`2024-04-13 16:47:23 [1] ERROR /home/runner/work/nanomq/nanomq/nng/src/supplemental/nanolib/conf_ver2.c:970 conf_bridge_node_parse: No wildcard +/# should be contained in remote topic in forward rules.`

Similar issues: #1684, #1463, https://github.com/nanomq/nanomq/issues/1174#issuecomment-1769265904


**Describe the solution you'd like**
Similar to what eclipse mosquitto allows: "_The local-prefix and remote-prefix options allow topics to be remapped when publishing to and receiving from remote brokers. This allows a topic tree from the local broker to be inserted into the topic tree of the remote broker at an appropriate place._" (https://mosquitto.org/man/mosquitto-conf-5.html)

As example, in mosquitto, that configuration line allows to remap (adding a prefix in the remote topic) with a wildcard:

`topic topic1/# both 0 "" device_id/`

**Describe alternatives you've considered**
Right now, the alternative I've tested is:

{
remote_topic = ""
local_topic = "device_id /topic1/#"
}

That works, but it doesn't allow a topic to be remapped with a wildcard, moving more work to the local configuration part.

MQTT Bridge - Allow prefix/suffix to remap of topics
This is a GitHub Issue
repo:nanomq
owner:emqx
Title : MQTT Bridge - Allow prefix/suffix to remap of topics
Issue date:

--- start body ---
**Is your feature request related to a problem? Please describe.**
Configuring a bridge, if you try to rewrite the topic with a wildcard:

```
forwards = [
  {
    remote_topic = "device_id/topic1/#"
    local_topic = "topic1/#"
  },
]
```

It shows:

`2024-04-13 16:47:23 [1] ERROR /home/runner/work/nanomq/nanomq/nng/src/supplemental/nanolib/conf_ver2.c:970 conf_bridge_node_parse: No wildcard +/# should be contained in remote topic in forward rules.`

Similar issues: #1684, #1463, https://github.com/nanomq/nanomq/issues/1174#issuecomment-1769265904


**Describe the solution you'd like**
Similar to what eclipse mosquitto allows: "_The local-prefix and remote-prefix options allow topics to be remapped when publishing to and receiving from remote brokers. This allows a topic tree from the local broker to be inserted into the topic tree of the remote broker at an appropriate place._" (https://mosquitto.org/man/mosquitto-conf-5.html)

As example, in mosquitto, that configuration line allows to remap (adding a prefix in the remote topic) with a wildcard:

`topic topic1/# both 0 "" device_id/`

**Describe alternatives you've considered**
Right now, the alternative I've tested is:

{
remote_topic = ""
local_topic = "device_id /topic1/#"
}

That works, but it doesn't allow a topic to be remapped with a wildcard, moving more work to the local configuration part.

--- end body ---
