See this discussion thread.
But, TLDR is that ru:Модуль:Вложенный список#L-363 looks for heading wikitext and instead encounters {{#parsoid\u0000fragment:0}} markers inserted by Parsoid. This might have been the end result of https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1304193 but independent of what patch caused it, at one level, this is not very different from modules encountering strip markers inserted by the legacy parser, except Parsoid's fragment markers are opaque. This is somewhat by design, but we should look into what functionality / API interface module authors need that we can provide that is not tied to specific implementation details and lets us evolve Parsoid a bit more freely (while being aware that https://www.hyrumslaw.com/ is a real thing).