Lucid Group Inc. beat expectations for quarterly production and deliveries, sending the automaker’s shares higher as it shook off concerns about a slowdown in the electric-vehicle market.