public PulsarSourceBuilder<OUT> setTopicPattern(String topicsPattern) {
        return setTopicPattern(Pattern.compile(topicsPattern));
    }
Set a topic pattern to consume from the java regex str. You can set topics once either with
{@link #setTopics} or {@link #setTopicPattern} in this builder.

<p>Remember that we will only subscribe to one tenant and one namespace by using regular
expression. If you didn't provide the tenant and namespace in the given topic pattern. We
will use default one instead.

@param topicsPattern the pattern of the topic name to consume from.
@return this PulsarSourceBuilder.
inlong-sort/sort-flink/sort-flink-v1.18/sort-connectors/pulsar/src/main/java/org/apache/inlong/sort/pulsar/source/PulsarSourceBuilder.java