Two similar red bumps on penis shaft, one with ingrown hair. This one was frozen, 2-3weeks later the other one began shrinking went flat. Hpv wart or?

Probably not wart. Warts are not associated with hairs. This is probably not HPV or any other STD. Maybe just pimples, no treatment needed. The large majority of genital skin rashes and bumpso are not STDs of any kind. See a dermatologist.