@civodul
Thank you for sharing!
@link2xt shared one almost satisfying solution with pattern matching:
https://fosstodon.org/@link2xt/111084807966046449
However, I went with let* + assoc-ref and a few alist- helpers. More verbose, but flexible and usually doesn't require nesting.