If the first one is not working, try the second option.
1. Force using tf.keras
import os
os.environ["SM_FRAMEWORK"] = "tf.keras"
import segmentation_models as sm
2. Match compatible versions
!pip install -U --quiet segmentation-models tensorflow efficientnet keras-applications image-classifiers