I got red pimple like bumps under my armpirs that turn to scars what could it be?

Axillary scars. Perifolliculitis (inflammation of hair follicles) may be related to hydradenitis suppurativa (pustular infection of sweat glands). Both of these conditions may be managed medically, but surgery is needed for severe cases.