@FrameworksEngineer or @Apple
Although this is not the appropriate forum, as a developer I have seen this behaviour in Safari, I reported it later switching to Chrome, then most recently on macOS 12.3 with Xcode 13.3.1 in the middle of editing a source file in a particular tab the focus will automatically switch to another tab while typing. I will monitor this and if the same occurs with the new macOS 12.4 and Xcode 13.4 I will raise a new defect on Feedback Assistant if it does.