This example does a non-linear regression: https://mc-stan.org/users/documentation/case-studies/golf.html . That’s probably a good reference for doing something like this in Stan.
There’s a long thread here on doing some sort of Gompertz thing with brms you might try: Hierarchical Gompertz model