The movie was written and wrapping the first phase of filming before Black Panther ever became a cultural phenomenon.
In fact, at one point, we learned producer Nate Moore pushed for Black Panther not to be dusted so he could be more omnipresent in the final film, also calling the decision to “murder” Black Panther “personally painful” due to how much the character meant to so many people, himself included.