Query loop - show siblings of current page

I would like to use the query loop in a page content element so it lists the siblings of the current page.
I have a page hierarchy for example:
Page A

  • a (query loop will show b+c)
  • b (query loop will show a+c)
  • c (query loop will show b+a)

Page B

  • d (query loop will show e+f)
  • e (query loop will show d+f)
  • f (query loop will show e+f)

How is that possible either with the query loop block or through a specific filter?

Thanks!
Dan

I saw this thread on the GP forum: how to create related posts with generateblocks? - GeneratePress
It works, but wondering if there is (or will be) a built in option for the GB query loop.

Thanks
Dan