fix compilation error for esp32 ble controller (#27231)

diff --git a/src/platform/ESP32/BLEManagerImpl.h b/src/platform/ESP32/BLEManagerImpl.h
index d47010e..e7f6178 100644
--- a/src/platform/ESP32/BLEManagerImpl.h
+++ b/src/platform/ESP32/BLEManagerImpl.h
@@ -24,6 +24,7 @@
  */
 
 #pragma once
+#include <string>
 
 #if CHIP_DEVICE_CONFIG_ENABLE_CHIPOBLE