The cherry-pick commit ae7adb368f52c0b7bf510e3c9cf12e368940745a introduced use of KPluginMetaData::fromJsonFile, but that's only available in kcoreaddons >= 5.91. Plasma 5.24 depends on >= 5.89.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2422
Git commit 0b28ddfefbf2ce68bdc7af2248858ad2a9c444ec by Alexander Lohnau. Committed on 07/12/2022 at 18:36. Pushed by fvogt into branch 'Plasma/5.24'. Add version guard for KPluginMetaData::fromJsonFile M +5 -0 kcms/desktoptheme/themesmodel.cpp https://invent.kde.org/plasma/plasma-workspace/commit/0b28ddfefbf2ce68bdc7af2248858ad2a9c444ec