You shouldn’t have joined a mixed class in the first place.
You should now stay as far as possible for him and from all other boys and try to cover your face and shouldn’t do anything that is considered a signal of approval. Try to conceal yourself as much as possible and may Allah make it easy for you.