Cannot find libraries on which other libraries depend

Thank you for the elaborate reply! I tried both fixes you proposed, to no avail. It seems like that whenever a headerfile is directly within a library map (so for example libdeps->library_map->headerfile.h), but if there is a map within the map of the library the compiler cannot find the header file (so libdeps->library_map->library_submap->headerfile.h). Ive included my platformio.ini below.

[env:disco_l475vg_iot01a]
platform = ststm32
board = disco_l475vg_iot01a 
framework = mbed
lib_ldf_mode = chain+
lib_deps = 
    mbed-mqtt/MQTT@0.0.0+sha.9cff7b6bbd01
    mbed-st/HTS221@0.0.0+sha.ccf7f36492ae
    mbed-farnell24-iot-team/wifi-ism43362@0.0.0+sha.766454e296c3

Minimal code used:

#include "mbed.h"

#include "ISM43362Interface.h"

#include "TCPSocket.h"

#include "MQTTmbed.h"

#include "MQTTClient.h"

#include "HTS221Sensor.h"