I have found a couple of dice-roller extensions (clarkwinkelmann/flarum-ext-roll-die and annonny/flarum-dice), but both are quite limited in the dice notations that they support.
I would like something that uses a fully-fledged dice-roller library, such as @dice-roller/rpg-dice-roller. So I could put the following in a post
[dice]4d6 + 3d6 + 1d20[/dice]
and it would show up in the rendered post as
4d6 + 3d6 + 1d20: [1, 6, 5, 2]+[2, 6, 1]+[12] = 35
There would need to be some mechanism in place to prevent reroll scumming, but I'm not sure how that could be done.
I am willing to pay to have such an extension developed.