Second hand smoke is not optional. It is the same reason we banned smoking in various buildings.
https://newscenter.lbl.gov/2013/08/01/secondhand-smoke-in-ba...
https://pubmed.ncbi.nlm.nih.gov/29870518/
For controls on residential buildings, we would need better standards in shared housing construction and perhaps also we could take a look at better airflow and particulate filtration methods. I expect it will be some time (and perhaps another airborne pandemic?) for that to be addressed seriously.