I'm not sure this is the correct venue for that question.
That said, I think you may be using the "Google Analytics Universal Analytics" tag, which takes a UA-code because it's for the previous version,.
What you actually want is a "Google Analytics: GA4 Configuration" tag.