See pic below. There is a 'composite' option that might allow you to do this in 1 single flow and only 1 single import bubble.
Else, you can use 2 import bubbles in 1 single flow, where the first bubble imports the parent records, and the second bubble imports the child records.
Else, you can use 2 flows to completely separate the parent vs child imports.