What needs to be changed in the structure of human lungs to be able to filter the inhaled air from heavy particles and toxic gases? For example, mine air can contain gases such as nitrogen ( This refers to the excessive inhalation of nitrogen - when there is too much of it in the air, it is harmful to the body ), methane, carbon monoxide, sulfur dioxide, hydrogen sulfide, nitrogen oxides, methane, hydrogen, heavy hydrocarbons, radon, ammonia and other harmful gases, as well as water vapor and dust.
Note: please do not create a special separate lung like the Astartes, the changes should concern the larynx and existing lungs and if it is considered necessary for the cardiovascular system.
Just describe in as much detail as possible these same filters from a biological point of view (how they do it and what they are). The more toxic gases you can remove from the air you breathe, the better.