Almost everyone writes off their pool, it’s perfectly legal and it is not a loophole. If you buy a home with a pool, the interest on the mortgage is deductable, if you add one yourself and finance it, then it is deductable, it is considered a home improvement, just like an addition, it’s a fixed item and improves the value. The reality is that once you own a home you should be deducting any loan payments, including your car (tax reward subordinated 4 or 5 year auto loan, San Diego County Credit Union markets them heavily).
What you will not be able to deduct is the maintenance and utilities, ballpark estimate is about $500 a month just to keep it going, it will double your utility bills, most notably electricity to filter it 4-8 hours a day. Heat, water, chemicals and cleaning on top of that and every year some $500 or $1000 component needs replacing. Enjoy!