Discussion - CVE-2019-11043 - PHP-FPM Could Lead to Remote Code Execution on nginx

root@box:~# ufw insert 2 deny 443
Skipping inserting existing rule
Skipping inserting existing rule (v6)
root@box:~#

Not working as you showed.

It appears that you need to sudo ufw status numbered
then delete the two rules for port 443 using sudo ufw delete # once for each appearance …
then you can do
sudo ufw insert 2 deny 443