Since the spread of the COVID-19 pandemic, the number of patients has increased dramatically, making it difficult for medical staff, including doctors, to cover hospitals and monitor patients. Therefore, this work depends on Computerized Tomography (CT) scan images to diagnose COVID-19. CT scan images are used to diagnose and determine the severity of the disease. On the other hand, Deep Learning (DL) is widely used in medical research, making great progress in medical technologies. For the diagnosis process, the Convolutional Neural Network (CNN) algorithm is used as a type of DL algorithm. Hence, this work focuses on detecting COVID-19 from CT scan images and determining the severity of the illness. The proposed model is as follows: first, classifying CT scan images into infected or not infected using one of the CNN structures, Residual Neural Networks (ResNet50); second, applying a segmentation process for the infected images to identify lungs and pneumonia using the SegNet algorithm (a CNN architecture for semantic pixel-wise segmentation) so that the disease's severity can be determined; finally, applying linear regression to predict the disease's severity for any new image. The proposed approach reached an accuracy of 95.7% in the classification process and lung and pneumonia segmentation of 98.6% and 96.2%, respectively. Furthermore, a regression process reached an accuracy of 98.29%.