Charcoal, 75 bytes
Try it online! Link is to verbose version of code. Takes input as size and sections. Explanation: Far too long because it doesn't try to use a formula, but guarantees 100% correct answers.
Create displacement vectors for each of the six ...
Excel, 63 bytes
=LET(r,2*A1-1,x,ABS(A1-SEQUENCE(r)),REPT(" ",x)&REPT("* ",r-x))
Link to Spreadsheet
The above spills the results to multiple cells. The 75 byte formula for a single cells answer is below.
=LET(r,2*A1-1,x,ABS(A1-SEQUENCE(r)),CONCAT(REPT(" ",x)&REPT("* ",r-x)&"