New electric vehicle factories, funded by investors who have snapped up newly public shares in companies such as EV startup Lucid Group Inc., are boosting demand.