I don't have a source, but if you have "undamaged" ones you can make a mold of them, and cast them in silicone to make new ones, if you can't find a source later on.
Good idea, but nearly impossible to remove the original existing white sealant without tearing the original grommet. So a mold of this would not be ideal. Some folks report they carefully use a Xacto knife to remove original sealant.
Was able to source the phase wire grommets @ https://www.greenbikekit.com/bafang-8fun-bbs-kits-and-spare-parts/8fun-bbs01-bbs0b-maintenance-repair-related-parts/bbs-motor-phase-wire-rubber-seal.html
Still searching for that elusive rectangle grommet.
If you use silcone grease on the main block with a wire the same guage also covered in grease then use silcon sealer to make a new one, once set the new silicon seal can be removed and the grease makes a nice moisture seal as well
I got this information from a overseas Bafang bike shop. They could not tell me what number went with what seal.
Here are the Bafang Numbers for seals they call it “BF-Code”:
Rubber Seals for BBSHD (3 numbers):
1401210100002
1401210200001
1401210200004
Rubber Seals for BBS01/02 have the same number – I don´t know why. Only Type is different: BBSHD – BBS01/02
These items are from Bafang and still available.