Using f-strings to construct SQL queries allows injection attacks.
Use parameterized queries. Never interpolate values directly into SQL strings.