Starting March 3, 2025, Google Ads API and Google Ads Scripts will no longer provide search subcategories in search term insight reports.
The Google Ads UI has already removed this field, and the API is following for consistency.

Here is the official announcement: Google Ads API and Google Ads scripts search term insight report update starting March 3, 2025.