Category.ByName in german language version shows wrong category

Update your Revit to the latest release, and you should be ready. This was a known issue on the initial release of 2023

I have been using Category.ById lately as the string version is not consistent enough for my needs.