Let $\mathcal{P}$ be a set of prime numbers of relative density $\kappa \in (0, 1)$, which means that $$\#\left(\mathcal{P} \cap [1, x]\right) = \kappa \,\pi(x) + E(x) \quad (x \to \infty)$$ for a "suitable" error term $E(x)$ (of course, $E(x) = o(\pi(x))$).

Let $\mathcal{S}$ be the set of natural numbers having no prime factor in $\mathcal{P}$.

**Question:** Do we have an asymptotic formula for $\#\left(\mathcal{S} \cap [1, x]\right)$ ?

For $\kappa \in (0, 1/2)$, Corollary 1.2 of [1] gives that $$\#\left(\mathcal{S} \cap [1, x]\right) \sim C(\mathcal{P}) \frac{x}{(\log x)^\kappa} \quad (x \to +\infty)$$ where $C(\mathcal{P})$ is a positive constant depending on $\mathcal{P}$. I guess that something similar holds in the whole range $\kappa \in (0, 1)$, but I could not find such a result. Thank you for any help.

**P.S.** Although I am interested in general set of primes $\mathcal{P}$ of relative density $\kappa$, results concerning *sufficiently general* $\mathcal{P}$ of relative density $\kappa$ are welcome. For example, in light of Daniel Loughran's comment, sets like those of Chebotarev density theorem $$\mathcal{P} = \{p \text{ unramified in $K$}, \mathrm{Frob}_p \subseteq C\} ,$$
where $K$ is a finite Galois extension of $\mathbb{Q}$ and $C$ is a conjugacy class of its Galois group, are certainly interesting.

*P.S.* This is very related to question: Natural density of set of numbers not divisible by any prime in an infinite subset , as pointed out by user Hhhhhhhhhhh.

[1] Iwaniec and Kowalski, *Analytic Number Theory* (2004)