Issue with includes after migrating from 4.18 to 4.25

That is correct. I can’t remember the name of UBT flag which they changed to do that. Maybe bLegacyPublicIncludePaths, not sure. I think it is generally considered an old way, so I would not reenable it. You can add your folder paths to Build.cs using

PublicIncludePaths
PrivateIncludePaths

so folder will scanned for includes.