Is the query actually slower, or is it just not using an index you want it to use?
Often times PG won’t bother with an index for a variety of reasons (sequential scans can be legitimately faster in some scenarios), especially when the number of rows is small.