Sentence pair similarity can be formulated like a binary classification problem. Hence, using BinaryCrossEntropy loss is a good idea.
Can you share the full code (not screenshots) here for better understanding?