In Visual Studio 2022, when creating a new ArcGIS PRO dockpane for a project, the default dockpane XAML file created seems to have a number of errors, as shown in the screenshot below. However, if run, everything runs fine, but the XAML designer won't display in VS giving the error "Invalid Markup".

The squiggly blue underlines tend to contain errors such as:

Just curious how I can fix this.
For reference:
Visual Studio 2022 vers. 17.11.5
ArcGIS PRO sdk for .net vers. 3.4.0.55405