I see that the 5 rows posted comprise of only 2 unique seq-ids. The proposed efetch method will download the entire sequence for the seq-id every time. While this won't be an issue for a few sequences, it can become slow for a whole bunch of sequences. Perhaps something like this will help:
## make a bed-like file with regions
$ cat regions.txt
BA000007.3 5017083 5018620
CP053370.1 10266 11819
CP053370.1 106369 107922
CP053370.1 112532 114085
CP053370.1 216122 217675
## use efetch to download sequences for each seq-id only once
## then use seqkit subseq to extract sequences
$ cut -f1 regions.txt | sort -u | epost -db nuccore | efetch -format fasta | seqkit subseq --bed regions.txt