Maybe its not possible? If you read the Pandoc specification here: https://pandoc.org/MANUAL.html#tables
it states that "cells that span multiple columns or rows of the table are not supported" (see under "multiline_tables").
You could also consider using Table formatting package like gt or flextable. They will allow you some complex layout that writing bare markdown table won't probably allow