I looked into this a bit and couldn’t find anything. My code blocks still work in 2022 but they look blank and I can’t edit them . They still have their data.
Please remove all revit add-ins, those often are the culprit in situations like this