Spider-Man: No Way Home can feature the comics arc Captain America: Civil War failed to tell using the Sokovia Accords. Existing as legislation passed by the United Nations, the Sokovia Accords serve to regulate the activities of enhanced individuals such as the Avengers.
However, it's unlikely Spider-Man signed despite joining Iron Man against Captain America. However, it seems as though the Sokovia Accords could come into play once more now that Peter Parker has been unmasked.
Read more on screenrant.com