I sense that you are working in a small company where, due to a smaller employee count, the company did not register for PF and ESI. Now, as the company has expanded its workforce, they have registered for PF & ESI.
Explanation of CTC
CTC stands for Cost To The Company, which indicates how much you cost the company.
CTC = Salary (Basic + DA + Conveyance + Medical and Others) + Employee PF contribution + Employer PF contribution + Employee ESI contribution + Employer ESI contribution.
If your CTC was the in-hand salary before the deduction of PF & ESI started, then it is acceptable if your employer deducts both the employee's and employer's shares from your Salary (meaning CTC).
Please review your Appointment Letter, Salary breakdowns, and CTC to see what is specified. It is possible that you may not have a clear understanding from the company's policy documents, particularly if the company is new, as I mentioned earlier.
In this case, I recommend having a meeting with HR or Management to understand the basis on which the company deducted PF & ESI contributions.
Additionally, since you mentioned not receiving a PF account number, I suggest asking for it during the meeting. If they are unable to provide your PF account number, request the Organization's account number.
If the company is registered with EPFO, it must have an account number. With the company's account number, you can check the EPFO website for the company's status and the names of employees for whom the company submitted PF contributions last month.
I believe the situation is not overly complex, and there is no need to pursue legal action at this time.
I do not recommend taking any legal steps before examining all the scenarios I have outlined above.
Please respond if further assistance is needed.