This feature was added to the Nunjucks macros in [Add beforeInput(s) and afterInput(s) options to form groups (#4567)](https://github.com/alphagov/govuk-frontend/pull/4567). We could consider how we might support this too.