Edit: removed hints, posted my solution.
Here is my solution. We're going to pick a reference point xx where f(x)∈Lf(x)∈L and consider the universe from xx and f(x)f(x)'s points of view. It turns out that every "neighborhood" of a point corresponds to a recursive language. So LL is a neighborhood around f(x)f(x), and there will be some neighborhood around xx that maps to it; this neighborhood is a recursive language.
Lemma. In this space, a language is recursive if and only if it is a neighborhood of each of its strings.
Proof. First, fix a recursive language LL and let x∈Lx∈L. Let KK be the minimal index of a decider for LL. Then we have that if y∉Ly∉L, s(x,y)≤Ks(x,y)≤K, so d(x,y)≥1/2Kd(x,y)≥1/2K. Thus d(x,y)<1/2Kd(x,y)<1/2K implies that y∈Ly∈L.
Second, let xx be an arbitrary string and fix ε>0ε>0; let K=⌊log(1/ε)⌋K=⌊log(1/ε)⌋. Let LK={y:d(x,y)<ε}LK={y:d(x,y)<ε}; then LK={y:s(x,y)>K}LK={y:s(x,y)>K}. Then we can write
LK={y:(∀j=1,…,K)|L(Tj)∩{x,y}|≠1}.
LK={y:(∀j=1,…,K)|L(Tj)∩{x,y}|≠1}.
But LKLK is decidable: On input yy, one may simulate the first KK deciders on xx and yy and accept if and only if each either accepted both or rejected both. ◻ □
Now we're almost done:
Prop. Let ff be continuous. If LL is recursive, then f−1(L)f−1(L) is recursive.
Proof. Under a continuous function, the preimage of a neighborhood is a neighborhood.
Interestingly, I think that in this space a continuous function is uniformly continuous: Let ff be continuous, so for each point xx, for each εε there exists a corresponding δδ. Fix an εε and let K=⌊log(1/ε)⌋K=⌊log(1/ε)⌋. There are a finite number of balls of size εε: there is L(T1)∪L(T2)⋯∪L(TK)L(T1)∪L(T2)⋯∪L(TK); then there is ¯L(T1)∪L(T2)⋯∪L(TK)L(T1)¯¯¯¯¯¯¯¯¯¯¯¯∪L(T2)⋯∪L(TK); then L(T1)∪¯L(T2)⋯∪L(TK)L(T1)∪L(T2)¯¯¯¯¯¯¯¯¯¯¯¯⋯∪L(TK), and so on. ff associates to each of these languages LiLi a preimage language L′iL′i with associated diameter δiδi. For each x∈L′ix∈L′i, d(x,y)≤δi⟹d(f(x),f(y))≤εd(x,y)≤δi⟹d(f(x),f(y))≤ε. So we can take the minimum over these finitely many δδs to get the uniform continuity constant δδ associated with this εε.