PCRE pattern compilation error when publishing new version of shiny application

When I try to publish my shiny app to RSConnect server, I keep getting the following error:

Warning in base::gregexpr(.., perl = perl) :

PRE pattern compilation error

'invalid range in character class' at '-]+) (?= |$)'

Error in base::gregexpr(..., perl = perl) :

invalid regular expression '(?‹=^ )Г.#](T:alnum:1-1+)(?= |$)'

Calls: Local ... tryCatch -› tryCatchList -› tryCatchone -> <Anonymous›

When i run my application on my local computer, I cannot replicate the same issue.

We also made sure that the server is running the same version of R that is in our renv.lock and manifest.json

Any help would be appreciated