ESP32 s3 BLE not connecting with Serial Bluetooth terminal app

When i upload this code on my ESP32 S3 for using ble it works with nrf connect app but it doesnt work with serial bluetooth terminal app ?
#include <Arduino.h>
#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
#include <BLE2902.h>

BLEServer *pServer = NULL;
BLECharacteristic *pCharacteristic = NULL;
bool deviceConnected = false;

class MyServerCallbacks : public BLEServerCallbacks {
public:
void onConnect(BLEServer* pServer) {
deviceConnected = true;
}

void onDisconnect(BLEServer* pServer) {
    deviceConnected = false;
}

};

class MyCallbacks : public BLECharacteristicCallbacks {
public:
void onWrite(BLECharacteristic *pCharacteristic) {
std::string value = pCharacteristic->getValue();
if (!value.empty()) {
Serial.print("Received command over BLE: ");
Serial.println(value.c_str());
} else {
Serial.println("Empty value received over BLE");
}
}
};

void setup() {
Serial.begin(115200);
Serial.println("Starting BLE Server...");

BLEDevice::init("ESP32-S3 BLE Server");
pServer = BLEDevice::createServer();
pServer->setCallbacks(new MyServerCallbacks());

BLEService *pService = pServer->createService(BLEUUID((uint16_t)0x180A)); // Generic Attribute Profile (GATT)
pCharacteristic = pService->createCharacteristic(
                BLEUUID((uint16_t)0x2A23), // Characteristic UUID for System ID
                BLECharacteristic::PROPERTY_READ | BLECharacteristic::PROPERTY_WRITE
              );
pCharacteristic->setValue("ESP32-S3"); // Set a static system ID
pCharacteristic->setCallbacks(new MyCallbacks());

// Optional: Add descriptor for notifications
// BLE2902 *pDescriptor = new BLE2902();
// pCharacteristic->addDescriptor(pDescriptor);

pService->start();

BLEAdvertising *pAdvertising = pServer->getAdvertising();
pAdvertising->start();
Serial.println("BLE Server started");

}

void loop() {
// Handle other tasks if needed
delay(1000);
}

Welcome to the forum

Your topic has been moved to the Project Guidance category of the forum

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use [color = red]code tags[/color] (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

Does the Serial Bluetooth app support the use of BLE rather than just classic Bluetooth ?